public ActionResult UpdateRoleProcess(RoleDto role) { if (!ModelState.IsValid) { return(RedirectToAction("UpdateRolePartial")); } var roleEntity = role.GenericMapper <RoleDto, Role>(); roleService.UpdateRole(roleEntity); return(Json(new { Response = "success" })); }