Esempio n. 1
0
        public static PlaceDTO Create(int row, int column, string aisle, Bottle bottle, double? score)
        {
            var place = new PlaceDTO();
            place.Row = row;
            place.Column = column;
            place.Aisle = aisle;
            if (bottle != null)
                place.Bottle = RatedBottleDTO.From(bottle, score);

            return place;
        }
Esempio n. 2
0
 public void PlaceBottle(PlaceDTO place)
 {
     ExecutionContext.Instance.Execute(new PlaceBottle(place.Bottle.Bottle.To(), place.Aisle, place.Row, place.Column));
 }