public Contact FromDto() { return(new Contact { Phone = Phone, Temperament = (Temperament)Temperament, Biography = Biography, Name = Name, Height = Height, EducationPeriod = EducationPeriod?.FromDto(), Id = Id }); }
public EducationPeriodDto(EducationPeriod period) { Id = Guid.NewGuid().ToString(); Start = period.Start; End = period.End; }