Ejemplo n.º 1
0
 public Speaker CreateEntity(SpeakerDTO dto) =>
 new Speaker(dto.Id, _cityFactory.CreateEntity(dto.City), dto.Name, dto.Photo, dto.About, dto.Email, dto.Facebook.SomeNotNull(), dto.Phone.SomeNotNull());
Ejemplo n.º 2
0
 public Administrator CreateEntity(AdministratorDTO dto) => new Administrator(dto.Id, _cityFactory.CreateEntity(dto.City), dto.Name, dto.Email);
Ejemplo n.º 3
0
 public Talk CreateEntity(TalkDTO dto) => new Talk(
     dto.Id, _cityFactory.CreateEntity(dto.City), dto.StartsAt, _speakerFactory.CreateEntity(dto.Speaker),
     dto.Name, dto.Comment, dto.ShortInfo, dto.FullInfo
     );