C# Passing Data To Controller .net core
function testSave() {
$.ajax({
type: 'POST',
url: "/district/Create",
data: {Name:"sance"},
success: function (respon) {
alert("ok");
},
error: function () { alert("Err TestSave.") }
});
}
public async Task<IActionResult> TestSave(CreateDistrictDto dto) {
return Content("ok");
}
C# Passing Data To Controller .net core
Reviewed by Leo
on
Agustus 08, 2022
Rating:
Tidak ada komentar