public ActionResult Index() { var selectedTestItem = TestContainer.GetNextTestItem(); if (selectedTestItem == null) { return(RedirectToAction("TestResult", "Home")); } Session["selectedTestItem"] = selectedTestItem; return(View(selectedTestItem)); }