Ejemplo n.º 1
0
 // GET: Student
 public ActionResult Index()
 {
     if (!user.IsStudent())
     {
         return(View("Error"));
     }
     if (user.IsTesting())
     {
         return(RedirectToAction("DoingTest"));
     }
     Model.UpdateLastLogin();
     Model.UpdateLastSeen("Trang Chủ", Url.Action("Index"));
     ViewBag.score = Model.GetStudentTestcode();
     return(View(Model.GetDashboard()));
 }