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