Ejemplo n.º 1
0
 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;
     }
 }