Esempio n. 1
0
 public static bool DeleteUser(Subscription.User user)
 {
     string [] roles = Roles.GetRolesForUser(user._Username);
     if(roles != null)
         Roles.RemoveUserFromRoles(user._Username, roles);
     return Membership.DeleteUser(user._Username);
 }
Esempio n. 2
0
        public static void UpdateUser(Subscription.User user)
        {
            MembershipUser temp = Membership.GetUser(user._Username);
            temp.Comment = user._Descripcion;
            temp.IsApproved = user._Activo;

            Membership.UpdateUser(temp);
        }