Exemplo n.º 1
0
 //============
 public ActionResult ShowReport(FormCollection form)
 {
     TempData["sttinfo"] = null;
     if (ViewBag.Total = report.CountCanTestFromTo(form) != 0)
     {
         ViewBag.Total    = report.CountCanTestFromTo(form);
         ViewBag.Passed   = report.CountCanPassedTestFromTo(form);
         ViewBag.fromDate = DateTime.Parse(Convert.ToString(form["TuNgay"])).ToString("MM/dd/yyyy");
         ViewBag.toDate   = DateTime.Parse(Convert.ToString(form["DenNgay"])).ToString("MM/dd/yyyy");
         return(View());
     }
     else
     {
         TempData["sttinfo"] = "123";
         TempData["info"]    = "Dont have more information from your time choice!!!";
         return(RedirectToAction("Report"));
     }
 }