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; }
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; }
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); }