Пример #1
0
        public ActionResult AssignOwnerShip(String userName, String roleName)
        {
            MembershipUser user = Membership.GetUser(userName);
            AuthenticationsAndAuthorizationsOperations aNaOps = new AuthenticationsAndAuthorizationsOperations();

            aNaOps.InsertRoleOwnership(userName, roleName);
            return(RedirectToAction("EditRole", new { roleName = roleName }));
        }