public void EditPurchaseOrder(PurchaseOrder PurchaseOrderToEdit)
 {
     PurchaseOrderRepository.Update(PurchaseOrderToEdit);
     SavePurchaseOrder();
 }
 public void CreatePurchaseOrder(PurchaseOrder PurchaseOrder)
 {
     PurchaseOrderRepository.Add(PurchaseOrder);
     SavePurchaseOrder();
 }