public ActionResult Create(Role role) { role.ApplicationId = CurrentUser.ApplicationId; role.LoweredRoleName = role.RoleName.ToLower(); var data = roleRepository.Create(role); return Json(new JsonViewModel { IsSuccess = true, Data = data }, JsonRequestBehavior.AllowGet); }
public ActionResult Edit(Role update) { var roleUpdated = roleRepository.Update(update); return Json(new JsonViewModel { IsSuccess = true, Data = roleUpdated }, JsonRequestBehavior.AllowGet); }