/// <summary>
        /// Срочна книга
        /// </summary>
        /// <returns></returns>
        public IActionResult CaseSessionTimeBookSpr()
        {
            var model = new CaseSessionTimeBookFilterVM();

            model.DateFrom           = new DateTime(DateTime.Now.Year, 1, 1);
            model.DateTo             = new DateTime(DateTime.Now.Year, 12, 31);
            model.CaseGroupId        = -1;
            model.DepartmentId       = -1;
            ViewBag.CaseGroupId_ddl  = nomService.GetDropDownList <CaseGroup>();
            ViewBag.DepartmentId_ddl = courtDepartmentService.Department_SelectDDL(userContext.CourtId, NomenclatureConstants.DepartmentType.Systav);
            return(View(model));
        }
        public IActionResult CaseSessionTimeBookSpr(CaseSessionTimeBookFilterVM model)
        {
            var xlsBytes = service.CaseSessionTimeBook_ToExcel(userContext.CourtId, model.DateFrom ?? DateTime.Now.AddYears(-100), model.DateTo ?? DateTime.Now.AddYears(100), model.CaseGroupId, model.DepartmentId);

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