public Bottle(Guid guid, Wine wine, int year, double? price, DateTime addedAt) { Guid = guid; Wine = wine; Year = year; Price = price; AddedAt = addedAt; }
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; }
public WineCreated(Wine wine) { Wine = wine; }