Beispiel #1
0
        public IActionResult ExcelDataResult(string filterJson)
        {
            var dateTimeConverter = new IsoDateTimeConverter()
            {
                DateTimeFormat = FormattingConstant.NormalDateFormat
            };
            DeliveryItemListVM model = JsonConvert.DeserializeObject <DeliveryItemListVM>(filterJson, dateTimeConverter);

            (var xlsBytes, var fileName) = service.GetDeliveryItemReportResultToExcel(model);
            return(File(xlsBytes, System.Net.Mime.MediaTypeNames.Application.Rtf, fileName));
        }