예제 #1
0
        public ActionResult UnassignOwnerShip(String userName, String roleName)
        {
            MembershipUser user = Membership.GetUser(userName);
            AuthenticationsAndAuthorizationsOperations aNaOps = new AuthenticationsAndAuthorizationsOperations();

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