Пример #1
0
        private PizzaListingModel BuildModel(OrderedPizza orderedPizza)
        {
            var sizes    = _sizeService.GetAll();
            var depths   = _depthService.GetAll();
            var toppings = _toppingService.GetAll();
            var model    = new PizzaListingModel
            {
                Sizes         = sizes,
                Depths        = depths,
                Toppings      = toppings,
                CustomerPizza = orderedPizza
            };

            return(model);
        }
Пример #2
0
 public static List <Food_Size> GetAll()
 {
     return(size_act.GetAll());
 }