public ActionResult Index(ReportModel model) { if (!ModelState.IsValid) { return(View(model)); } ViewBag.Title = "Report Results"; var result = model.ExecuteReport(); return(View("ReportResults", result)); }