/// <summary> /// Отвод/Самоотвод /// </summary> /// <returns></returns> public IActionResult DismisalReport() { var model = new DismisalReportFilterVM(); model.DateFrom = new DateTime(DateTime.Now.Year, 1, 1); model.DateTo = new DateTime(DateTime.Now.Year, 12, 31); return(View(model)); }
public IActionResult DismisalReport(DismisalReportFilterVM model) { var xlsBytes = service.DismisalReportToExcelOne(model); return(File(xlsBytes, System.Net.Mime.MediaTypeNames.Application.Rtf, "Spravka.xlsx")); }