public IActionResult Excursion(ReportModel model)
        {
            var payList    = new List <OrderViewModel>();
            var excursions = new List <ExcursionViewModel>();

            excursions = edLogic.Read(new ExcursionBindingModel
            {
                ClientId = Program.Client.Id,
                DateFrom = model.From,
                DateTo   = model.To
            });
            var pays = payLogic.Read(null);

            foreach (var ed in excursions)
            {
                foreach (var pay in pays)
                {
                    if (pay.ClientId == Program.Client.Id && pay.ExcursionId == ed.Id)
                    {
                        payList.Add(pay);
                    }
                }
            }
            ViewBag.Order     = payList;
            ViewBag.Excursion = excursions;
            string fileName = "D:\\temp\\PdfReport.pdf";

            if (model.SendMail)
            {
                reportLogic.SaveExcursionOrdersToPdfFile(fileName, new ExcursionBindingModel
                {
                    ClientId = Program.Client.Id,
                    DateFrom = model.From,
                    DateTo   = model.To
                }, Program.Client.Login);
            }
            return(RedirectToAction("Excursion"));
        }