public static void Synchronize(int UserModuleID)
 {
     try
     {
         SynchronizeFiles.UserName     = fb.GetUsername;
         SynchronizeFiles.PortalID     = fb.GetPortalID;
         SynchronizeFiles.extensions   = FileManagerHelper.GetValidExtensions(UserModuleID, fb.GetPortalID);
         SynchronizeFiles.absolutePath = HttpContext.Current.Request.PhysicalApplicationPath.ToString();
         SynchronizeFiles.lstFolders   = FileManagerController.GetAllFolders();
         SynchronizeFiles.F2DSync();
         SynchronizeFiles.D2FSync();
     }
     catch (Exception ex)
     {
         fb.ProcessException(ex);
     }
     finally
     {
         CacheHelper.Clear("FileManagerFolders");
         CacheHelper.Clear("FileManagerFileList");
     }
 }