below is a simple example to use ajax in a mvc project
function BindDropdown() {
$.ajax({
url: "/apiFolder/ApiName",
type: "Get",
dataType: 'json',
success: function (datas, status, xhr) {
var vItems = "<option value='0'> ..Select.. </option>";
$("#ddlRDName").empty();
$.each(datas, function (index, rd) {
vItems += "<option value='" + rd.RoD_ID + "'> " + rd.RoD_Name + " </option>";
});
$("#ddlRDName").html(vItems);
$("#ddlRDName").val("0");
},
error: function (xhr, textStatus, errorThrown) {
//$('#dialog-overlay').hide();
}
});
}