public void DeleteSaleLineItem(SaleLineItem saleLineItem) { for (int i = 0; i < saleLineItems.Count; i++) { if (saleLineItems[i].saleLineItemID == saleLineItem.saleLineItemID) { saleLineItems.RemoveAt(i); break; } } }
public void AddSaleLineItem(SaleLineItem saleLineItem) { saleLineItems.Add(saleLineItem); }
//Laver Obj af SaleLineItem public SaleLineItem CreateSaleLineItem(Item item, int amount, decimal price, Treatment treatment, Prescription prescription) { SaleLineItem saleLineItem = new SaleLineItem(item, amount, price, treatment, prescription); return(saleLineItem); }