Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public ActionResult Edit(Role update)
 {
     var roleUpdated = roleRepository.Update(update);
     return Json(new JsonViewModel { IsSuccess = true, Data = roleUpdated }, JsonRequestBehavior.AllowGet);
 }