public ActionResult DoingTest() { if (!user.IsStudent()) { return(View("Error")); } if (!user.IsTesting()) { return(View("Error")); } if (user.TIME != null) { string[] time = Regex.Split(user.TIME, ":"); ViewBag.min = time[0]; ViewBag.sec = time[1]; } return(View(Model.GetListQuest(user.TESTCODE))); }
public ActionResult DoingTest() // làm bài thi { if (!user.IsStudent()) { return(View("Error")); } if (!user.IsTesting()) { return(View("Error")); } if (user.TIME != null) // nếu còn thời gian thi { // truyền vào view để hiển thị string[] time = Regex.Split(user.TIME, ":"); ViewBag.min = time[0]; ViewBag.sec = time[1]; } return(View(Model.GetListQuest(user.TESTCODE))); }