Ejemplo n.º 1
0
 public UserModel(Guid id, int userId, string userName, string forename,
                  string surname, DateTime startDate, RoleModel role, DeptoModel dpto, bool leaver, DateTime leavingDate)
 {
     Guid        = id;
     UserId      = userId;
     UserName    = userName;
     Forename    = forename;
     Surname     = surname;
     StartDate   = startDate;
     _Role       = role;
     Depto       = Depto;
     Leaver      = leaver;
     LeavingDate = leavingDate;
 }
Ejemplo n.º 2
0
 public UserVM(Guid id, int userId, string userName, string forename,
               string surname, DateTime startDate, RoleModel role, DeptoModel depto, bool leaver, DateTime leavingDate)
 {
     this._Guid   = id;
     this._UserId = userId;
     UserName     = userName;
     Forename     = forename;
     Surname      = surname;
     StartDate    = Convert(startDate);
     _Role        = role;
     Depto        = depto;
     Leaver       = Convert(leaver);
     LeavingDate  = Convert(leavingDate);
     Description  = this.ToString();
     UserAnalizes = new UserAnalisysCollection();
 }