public ActionResult ShowReport2(FormCollection form) { TempData["sttinfo"] = null; if (ViewBag.Total = report.CountCanTest(form) != 0) { ViewBag.Total = report.CountCanTest(form); ViewBag.Passed = report.CountCanPassedTest(form); ViewBag.NgayChon = DateTime.Parse(Convert.ToString(form["NgayChon"])).ToString("MM/dd/yyyy"); return(View()); } else { TempData["sttinfo"] = "123"; TempData["info"] = "Dont have more information from your day choice!!!"; return(RedirectToAction("Report")); } }