Example #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;
        }
Example #2
0
        public static void DeleteItem(int ma)
        {
            var deleteItem = DetailPanelList.GetData().First(i => i.ID == ma);

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