/// <summary> /// Разносна книга /// </summary> /// <returns></returns> public IActionResult DeliveryBookReport() { ViewBag.CaseGroupId_ddl = nomService.GetDropDownList <CaseGroup>(); var model = new DeliveryBookFilterVM(); model.DateFrom = new DateTime(DateTime.Now.Year, 1, 1); model.DateTo = DateTime.Now; return(View(model)); }
public IActionResult DeliveryBookReport(DeliveryBookFilterVM model) { var xlsBytes = service.DeliveryBookReportToExcelOne(model); return(File(xlsBytes, System.Net.Mime.MediaTypeNames.Application.Rtf, "Spravka.xlsx")); }