Пример #1
0
 public User Create(string username, string password, Enums.UserType userType)
 {
     AuditableCreate();
     Email        = username;
     Password     = Encyption.Encrypt(password);
     UserType     = userType;
     RecordStatus = Enums.RecordState.Active;
     return(this);
 }
Пример #2
0
 public bool Validate(string password)
 {
     return(Encyption.Encrypt(password) != Password ? false : true);
 }