Beispiel #1
0
        public ActionResult RequestMembership(UserGroup userGroup, User currentUser)
        {
            Require.NotNull(userGroup, "userGroup");

            string allMembershipsUrl = Url.Action("AllMemberships", "UserGroup", null, Request.Url.Scheme);

            UserGroupService.RequestMembership(userGroup, currentUser, allMembershipsUrl);

            return(RedirectToAction("AllMemberships"));
        }