コード例 #1
0
 public Doctor ToDoctorEntity(Models.Account.CreateViewModel model, string userId)
 {
     return(new Doctor
     {
         AppointmentDuration = new TimeSpan(0, model.AppointmentDuration, 0),
         IsAproved = true,
         IsDeleted = true,
         RoomId = model.RoomId,
         UserId = userId
     });
 }
コード例 #2
0
 public User ToUserEntity(Models.Account.CreateViewModel model, string photoPath)
 {
     return(new User
     {
         FirstName = model.FirstName,
         LastName = model.LastName,
         UserName = model.Username,
         Email = model.Email,
         BirthDate = model.BirthDate,
         PhotoUrl = photoPath
     });
 }
コード例 #3
0
 public User ToUserEntity(Models.Account.CreateViewModel model, string path)
 {
     return(new User
     {
         DateOfBirth = model.DateOfBirth,
         UserName = model.Username,
         Email = model.Email,
         FirstName = model.FirstName,
         LastName = model.LastName,
         IsDeleted = false,
         NIF = model.NIF,
         PictureUrl = path
     });
 }