public dynamic DeleteFile(int fileID) { try { return(BrowseUploadFactory.DeleteFile(fileID)); } catch (Exception ex) { DotNetNuke.Services.Exceptions.Exceptions.LogException(ex); return(ex.Message.ToString()); } }
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()); } }