Ejemplo n.º 1
0
        /// <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));
        }
Ejemplo n.º 2
0
        public IActionResult DismisalReport(DismisalReportFilterVM model)
        {
            var xlsBytes = service.DismisalReportToExcelOne(model);

            return(File(xlsBytes, System.Net.Mime.MediaTypeNames.Application.Rtf, "Spravka.xlsx"));
        }