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