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); }
public static void UpdateUser(Subscription.User user) { MembershipUser temp = Membership.GetUser(user._Username); temp.Comment = user._Descripcion; temp.IsApproved = user._Activo; Membership.UpdateUser(temp); }