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; }
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); }