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; }
public static void DeleteItem(int ma) { var deleteItem = DetailPanelList.GetData().First(i => i.ID == ma); DetailPanelList.GetData().Remove(deleteItem); }
public static void AddItem(APIDetailPanel postedItem) { DetailPanelList.GetData().Add(postedItem); }