public ActionResult ListResult() { var session = (StudentLogin)Session[CommonConstants.STUDENT_SESSION]; var id_student = session.id_student; if (studentDao.getTesting(id_student) > 0) { return(View("DoingTest")); } var model = studentDao.GetListResult(id_student); studentDao.UpdateLastLogin(id_student, GetIPAddress(), GetUserEnvironment()); ViewBag.studenname = studentDao.ViewDetail(id_student).student_name; studentDao.UpdateLastSeen("Đang xem danh sách kết quả của các kỳ thi ", Url.Action("ListResult"), id_student); return(View(model)); }