Пример #1
0
 public Bottle(Guid guid, Wine wine, int year, double? price, DateTime addedAt)
 {
     Guid = guid;
     Wine = wine;
     Year = year;
     Price = price;
     AddedAt = addedAt;
 }
Пример #2
0
 public static WineDTO From(Wine wine)
 {
     var dto = new WineDTO();
     dto.Name = wine.Name;
     dto.Kind = KindDTO.From(wine.Kind);
     dto.Producer = ProducerDTO.From(wine.Producer);
     dto.Alcohol = wine.Alcohol;
     return dto;
 }
Пример #3
0
 public WineCreated(Wine wine)
 {
     Wine = wine;
 }