public override void UpdateProductDistributionStatus(int?id, int?statusID, int?modifierID)
 {
     using (var adapter = ProductDistributionQueriesAdapter.CreateInstance(ConfigurationManagerEx.ConnectionString, ConfigurationManagerEx.CommandTimeout))
     {
         adapter.SP_T_ProductDistributionHeader_UpdateStatus(id, statusID, modifierID);
     }
 }
 public override int AddOrEditProductDistribution(int productDistributionID, int fromBranchID, int toBranchID, DateTime startDate, DateTime endDate, decimal subTotal, decimal taxAmt, decimal freight, decimal totalDue, string currencyCode, int currencyRateID, string comment, int revisionNumber, int status, int modifiedUserID, DateTime modifiedDate, int approverUserID, int action, byte[] b)
 {
     using (var adapter = ProductDistributionQueriesAdapter.CreateInstance(ConfigurationManagerEx.ConnectionString, ConfigurationManagerEx.CommandTimeout))
     {
         return((int)adapter.SP_AddOrEditProductDistribution(productDistributionID, fromBranchID, toBranchID, startDate, endDate, subTotal, taxAmt, freight, totalDue, currencyCode, currencyRateID, comment, revisionNumber, status, modifiedUserID, modifiedDate, approverUserID, action, b.GetXmlData()));
     }
 }