public IActionResult OnPostEdit(EditRoleVM command) { if (!ModelState.IsValid) { return(RedirectToPage("Index")); } var result = _roleApplication.Edit(command); return(new JsonResult(result)); }
public IActionResult OnPost(EditRole command) { var result = _roleApplication.Edit(command); return(RedirectToPage("Index")); }
public JsonResult OnPostEdit(EditRole command) { var result = _roleApplication.Edit(command); return(new JsonResult(result)); }
public IActionResult OnPost(/*EditRole command*/) { _roleApplication.Edit(Role); return(RedirectToPage("Index")); }