Beispiel #1
0
        public ActionResult Index(ReportModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            ViewBag.Title = "Report Results";
            var result = model.ExecuteReport();

            return(View("ReportResults", result));
        }