/// <summary> /// Описна книга въззивни/касационни /// </summary> /// <returns></returns> public IActionResult CaseSecondInstanceReport() { ViewBag.CaseGroupId_ddl = nomService.GetDropDownList <CaseGroup>(false); var model = new CaseSecondInstanceFilterReportVM(); model.DateFrom = new DateTime(DateTime.Now.Year, 1, 1); model.DateTo = DateTime.Now; return(View(model)); }
public IActionResult CaseSecondInstanceReport(CaseSecondInstanceFilterReportVM model) { var xlsBytes = service.CaseSecondInstanceReportToExcelOne(model); return(File(xlsBytes, System.Net.Mime.MediaTypeNames.Application.Rtf, "Spravka.xlsx")); }