public void SaveItemDependencies(int shippingItemID, int shippingMethodID, string itemDependenciesOptions, int storeID, int portalID, string userName)
 {
     try
     {
         ShippingMethodSqlProvider obj = new ShippingMethodSqlProvider();
         obj.AddItemDependencies(shippingItemID, shippingMethodID, itemDependenciesOptions, storeID, portalID, userName);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public void SaveWeightDependencies(int shippingProductWeightID, int shippingMethodID, string weightDependenciesOptions, int storeID, int portalID, string userName)
 {
     try
     {
         ShippingMethodSqlProvider obj = new ShippingMethodSqlProvider();
         obj.AddWeightDependencies(shippingProductWeightID, shippingMethodID, weightDependenciesOptions, storeID, portalID, userName);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public void DeleteShippingByShippingMethodID(string shippingMethodIds, int storeId, int portalId, string userName)
 {
     try
     {
         ShippingMethodSqlProvider obj = new ShippingMethodSqlProvider();
         obj.DeleteShippings(shippingMethodIds, storeId, portalId, userName);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public void SaveAndUpdateShippingMethods(int shippingMethodID, string shippingMethodName, string prevFilePath, string newFilePath, string alternateText, int displayOrder, string deliveryTime,
         decimal weightLimitFrom, decimal weightLimitTo, int shippingProviderID, int storeID, int portalID, bool isActive, string userName, string cultureName)
 {
     try
     {
         FileHelperController fileObj = new FileHelperController();
         string uplodedValue = string.Empty;
         if (newFilePath != null && prevFilePath != newFilePath)
         {
             string tempFolder = @"Upload\temp";
             uplodedValue = fileObj.MoveFileToSpecificFolder(tempFolder, prevFilePath, newFilePath, @"Modules\ASPXCommerce\ASPXShippingManagement\uploads\", shippingMethodID, "ship_");
         }
         else
         {
             uplodedValue = prevFilePath;
         }
         ShippingMethodSqlProvider obj = new ShippingMethodSqlProvider();
         obj.SaveAndUpdateShippings(shippingMethodID, shippingMethodName, uplodedValue, alternateText, displayOrder, deliveryTime, weightLimitFrom, weightLimitTo, shippingProviderID, storeID, portalID, isActive, userName, cultureName);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List<ShippingMethodInfo> GetShippingMethodList(int offset, int limit, string shippingMethodName, string deliveryTime, System.Nullable<Decimal> weightLimitFrom, System.Nullable<Decimal> weightLimitTo, System.Nullable<bool> isActive, int storeID, int portalID, string cultureName)
 {
     try
     {
         ShippingMethodSqlProvider obj = new ShippingMethodSqlProvider();
         return obj.GetShippingMethods(offset, limit, shippingMethodName, deliveryTime, weightLimitFrom, weightLimitTo, isActive, storeID, portalID, cultureName);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }