示例#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());
示例#2
0
 public Administrator CreateEntity(AdministratorDTO dto) => new Administrator(dto.Id, _cityFactory.CreateEntity(dto.City), dto.Name, dto.Email);
示例#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
     );