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