Ejemplo n.º 1
0
 public AuthResponse Create(long userId, string email, Enums.RecordState recordState, Enums.UserType userType)
 {
     UserId      = userId;
     Email       = email;
     RecordState = recordState;
     UserType    = userType;
     return(this);
 }
Ejemplo n.º 2
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);
 }
Ejemplo n.º 3
0
 protected AuditableEntity()
 {
     CreatedOn   = DateTime.UtcNow;
     EditedOn    = DateTime.UtcNow;
     RecordState = Enums.RecordState.Active;
 }
Ejemplo n.º 4
0
 public User()
 {
     RecordState = Enums.RecordState.Active;
     CreatedOn   = DateTime.UtcNow;
     EditedOn    = DateTime.UtcNow;
 }