public static PatientInformationViewModel ToPatientInformationViewModel(this LocalPatient localPatient, PersonalInfoScreenViewModel parent) { return(new PatientInformationViewModel(parent) { Name = localPatient.Name, Surname = localPatient.Surname, BirthDate = localPatient.BirthDate, Email = localPatient.Email, Phone = localPatient.Phone, Street = localPatient.Street, Number = localPatient.StreetNumber, Bloc = localPatient.Block, Country = localPatient.Country, Job = localPatient.Job, Ocupation = localPatient.Ocupation, City = localPatient.City, }); }
public PatientInformationViewModel(PersonalInfoScreenViewModel parent) { Parent = parent; }