public void UpdateUser(CodeFactoryUser user) { MembershipUser item = Membership.GetUser(user.UserName); item.Comment = user.Comment; item.Email = user.Email; Membership.UpdateUser(item); if (!user.IsLockedOut) item.UnlockUser(); }
public void InsertUser(CodeFactoryUser user) { try { MembershipUser item = Membership.CreateUser(user.UserName, user.Password); item.Email = user.Email; item.Comment = user.Comment; Membership.UpdateUser(item); } catch (MembershipCreateUserException ex) { UsersResult.Message = ex.Message; } }
public void DeleteUser(CodeFactoryUser user) { Membership.DeleteUser(user.UserName); }