Я не могу переключить свое представление после отправки AJAX запроса POST из представления.
$("._button2").click(function() {
var $row = $(this).closest("tr"); // Find the row
var model = {
IDLicence: $row.find(".IDLicence").text(),
name: $row.find(".name").text(),
tel_number: $row.find(".name").text(),
seniority: $row.find(".seniority").text(),
eye_examination: $row.find(".eye_examination").text()
};
var url = "@Url.Action("Edit","Ctaxi")";
$.post(url, model)
});
Это мое действие:
[HttpPost]
public ActionResult Edit(Driver d)
{
return View("Edit");
}