public ActionResult ListAllLastProductsSoldFile() { try { ICollection <FileInfo> files = FilesDownload.GetDirectoryProductsSoldList().GetFiles(); if (files.Count < 1) { log.Info("User tried to access to an empty folder of daily products sold file"); return(View("FileNotFound")); } return(View(FilesDownload.GetListFilesNames(files))); } catch (Exception ex) { log.Error("Could't get list of daily products sold file", ex); return(View("ErrorDownload")); } }