Beispiel #1
0
 public Dish(int id, string name, decimal weight, decimal price, Layots layot, RecipeDish recipe, string kitchen)
 {
     Name       = name;
     Weight     = weight;
     Price      = price;
     LayoutDish = layot;
     RecipeDish = recipe;
     Kitchen    = kitchen;
 }
Beispiel #2
0
 public Dish(DishEnt dish)
 {
     Id         = dish.Id;
     Name       = dish.Name;
     Weight     = dish.Weight;
     Price      = dish.Price;
     LayoutDish = new Layots(dish.LayoutDish);
     RecipeDish = new RecipeDish(dish.RecipeDish);
     Kitchen    = dish.Kitchen;
 }
Beispiel #3
0
        List <Layots> LayotOutpoot()
        {
            List <LayoutEnt> layoutEnts = Unit.LayotsRepository.AllItems.ToList();
            List <Layots>    layotsList = new List <Layots>();

            foreach (var l in layoutEnts)
            {
                Layots layots = new Layots(l);
                layotsList.Add(layots);
            }
            return(layotsList);
        }