Пример #1
0
        public async Task <FileContentResult> GetResignReports([FromBody] ReportInputParam[] model = null)
        {
            //var newdate = DateTime.Parse(model.ResignDate);

            try
            {
                var file = await _resignRepo.GetResignReport(model);

                FileContentResult returnfile = new FileContentResult(file, "application/xlsx");
                return(File(file, "application/xlsx", "test.xlsx"));
            }
            catch (Exception e)
            {
                //log.ErrorFormat("Error sending mail. Exception: {0}", e);
                Console.Write(e);
                throw;
            }
        }