public void EditSalesOrder(SalesOrder SalesOrderToEdit)
 {
     SalesOrderRepository.Update(SalesOrderToEdit);
     SaveSalesOrder();
 }
 public void CreateSalesOrder(SalesOrder SalesOrder)
 {
     SalesOrderRepository.Add(SalesOrder);
     SaveSalesOrder();
 }