Example #1
0
 private void Ingredientupdate(string itemNum)
 {
     foreach (Ingredient c in InventIngredients)
     {
         if (c.isdelete)
         {
             if (!c.isNew)
             {
                 get_service.DeleteIngredient(itemNum, c.IngreId, StaticClass.storeId);
             }
         }
         else
         {
             if (c.isNew)
             {
                 get_service.InsertIngredient(itemNum, c.IngreId, StaticClass.storeId, c.Quantity.ToString(), c.Mesurement.ToString(), c.Yield.ToString());
             }
         }
     }
 }