function Create() {
var parameters = {
DepartmentId: hddepartmentId
};
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: baseUrl + 'Case/Create',
data: JSON.stringify(parameters),
dataType: "json",
success: function (data) {
alert("Success");
},
error: function (result) {
//alert("Error in case creation");
//alert(result);
}
});
}
var parameters = {
DepartmentId: hddepartmentId
};
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: baseUrl + 'Case/Create',
data: JSON.stringify(parameters),
dataType: "json",
success: function (data) {
alert("Success");
},
error: function (result) {
//alert("Error in case creation");
//alert(result);
}
});
}
No comments:
Post a Comment