public void AssignToppingsByID(int ID)
        {
            var datapizza = new dat.Pizza()
            {
                PizzaId = ID
            };

            Toppings = PizzaHelper.GetIngredientsByPizza(datapizza);
        }
Beispiel #2
0
 public void AssignCrusts()
 {
     foreach (var o in History)
     {
         foreach (var p in o.PizzaList)
         {
             var datapizza = new dat.Pizza()
             {
                 PizzaId = p.Id, CrustId = (byte)p.CrustId
             };
             CrustDictionary.Add(p.Id, PizzaHelper.GetCrustNameByPizza(datapizza));
         }
     }
 }