Esempio n. 1
0
 public ActionResult ShowReport3(FormCollection form)
 {
     TempData["sttinfo"] = null;
     if (ViewBag.Total = report.CountCanTestMonth(form) != 0)
     {
         ViewBag.Total  = report.CountCanTestMonth(form);
         ViewBag.Passed = report.CountCanPassedTestMonth(form);
         ViewBag.Month  = DateTime.Parse(Convert.ToString(form["ThangChon"])).ToString("MMMM yyyy");
         return(View());
     }
     else
     {
         TempData["sttinfo"] = "123";
         TempData["info"]    = "Dont have more information from your month choice!!!";
         return(RedirectToAction("Report"));
     }
 }