Good day.
There is a view on which there is ActionLink (). Also in the controller there is a method
public async Task<ActionResult> Delete(string id) { // TODO: Вызвать запрос о подтверждении. var user = await UserManager.FindByIdAsync(id); var res = await UserManager.DeleteAsync(user); return Index(); // Метод можно и переписать } Is it possible to somehow call this method from the view by clicking on the \ ActionLink \ Something similar button so that the method is executed, but the transition between the pages is not implemented?
Thank.
jQuery.ajax. "confirmation request" - do it on the client before ajax. What is the meaning of awaits in your code? - Igor