Пример #1
0
        public virtual FileResult DownloadReport(FiltersDataViewModel filters)
        {
            var response = _helpService.GetHelpReport(filters);

            if (!response.IsValid)
            {
                response.ErrorMessage = Localization.GetText("AP.HELP.Message.NoRecordsFound");

                return(null);
            }

            return(File(
                       response.File,
                       HelpValues.APPLICATION_REPORT,
                       HelpValues.FILENAME_REPORT));
        }