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); }
public bool Validate(string password) { return(Encyption.Encrypt(password) != Password ? false : true); }