コード例 #1
0
 public dynamic DeleteFile(int fileID)
 {
     try
     {
         return(BrowseUploadFactory.DeleteFile(fileID));
     }
     catch (Exception ex)
     {
         DotNetNuke.Services.Exceptions.Exceptions.LogException(ex);
         return(ex.Message.ToString());
     }
 }
コード例 #2
0
        public dynamic DeleteFiles(string fileIDs)
        {
            try
            {
                foreach (int fileID in fileIDs.Split(',').Select(s => int.Parse(s)).Distinct().ToList())
                {
                    BrowseUploadFactory.DeleteFile(fileID);
                }

                return("Success");
            }
            catch (Exception ex)
            {
                DotNetNuke.Services.Exceptions.Exceptions.LogException(ex);
                return(ex.Message.ToString());
            }
        }