$(document).on("click", "#StudentDelete", function () {
var Id = $(this).attr("data-id");
alert(gelenId);
$.ajax({
url: '/SchoolRepo/DeleteStudent/' + Id,
type: "POST",
datatype: "Json",
success: function (response) {
if (response.Success) {
location.reload();
alert(response.Message);
}
else {
alert(response.Message);
}
}
});
});
$(document).on("click", "#StudentDelete", func