public JsonResult Edit(AdminRoleDto dto) { var result = _adminRoleService.Edit(dto); if (result.IsRedirect) { result.Redirect = Url.Action("Index"); } return(ToJsonResult(result)); }