예제 #1
0
        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" }));
        }