Beispiel #1
0
        public static void UpdateItem(APIDetailPanel postedItem)
        {
            var editedModel = DetailPanelList.GetData().First(i => i.ID == postedItem.ID);

            editedModel.Items     = postedItem.Items;
            editedModel.Unit      = postedItem.Unit;
            editedModel.Quantity  = postedItem.Quantity;
            editedModel.UnitPrice = postedItem.UnitPrice;
            editedModel.Total     = postedItem.Total;
        }
Beispiel #2
0
        public static void DeleteItem(int ma)
        {
            var deleteItem = DetailPanelList.GetData().First(i => i.ID == ma);

            DetailPanelList.GetData().Remove(deleteItem);
        }
Beispiel #3
0
 public static void AddItem(APIDetailPanel postedItem)
 {
     DetailPanelList.GetData().Add(postedItem);
 }