public void ModifyOrder(int id, decimal totalDue)
        {
            using (IRepository repository = CreateUnitOfWork())
            {
                SalesOrderHeader order = repository
                                         .GetEntities <SalesOrderHeader>().FirstOrDefault(o => o.Id == id);

                order.TotalDue = totalDue;
                order.TaxAmt   = CalculateTax(order);

                repository.SaveChanges();
            }
        }
 private decimal CalculateTax(SalesOrderHeader order)
 {
     throw new NotImplementedException();
 }