Esempio n. 1
0
 public UserListModel(dbModel.User model)
 {
     Id            = model.Id;
     FirstName     = model.FirstName;
     LastName      = model.LastName;
     Address       = model.Address;
     Email         = model.Email;
     ContactNumber = model.ContactNumber;
     JoinedDate    = model.JoinedDate;
 }
Esempio n. 2
0
 public dbModel.User ToDBModel()
 {
     dbModel.User model = new dbModel.User()
     {
         Id            = Id,
         FirstName     = FirstName,
         LastName      = LastName,
         Address       = Address,
         Email         = Email,
         Password      = Password,
         ContactNumber = ContactNumber,
         JoinedDate    = DateTime.Now
     };
     return(model);
 }