public ActionResult Edit(MeetingInput input) { if (!_securityContext.HasPermissionsForUserGroup(input.UserGroupId)) { return(View(ViewPages.NotAuthorized)); } return(Command <MeetingInput, Meeting>(input, r => RedirectToAction <HomeController>(c => c.Index(r.UserGroup)), r => View(input))); }
public ActionResult Edit(UserGroupInput input) { if (!_securityContext.HasPermissionsForUserGroup(input.Id)) { return(View(ViewPages.NotAuthorized)); } return(Command <UserGroupInput, UserGroup>( input, r => new RedirectToReturnUrlResult(), i => View(input))); }
public ActionResult Edit(UserInput input) { if (!_securityContext.HasPermissionsForUserGroup(input.Id)) { return(View(ViewPages.NotAuthorized)); } return(Command <UserInput, object>(input, r => RedirectToAction <HomeController>(c => c.Index(null)), i => View(input) )); }