public IActionResult OnPostEdit(EditUserVM command) { if (!ModelState.IsValid) { return(RedirectToPage("Index")); } var result = _userApplication.Edit(command); return(new JsonResult(result)); }