public ActionResult EditStudent() // sửa thông tin học sinh(lấy thông tin cũ0 { if (!user.IsStudent()) { return(View("Error")); } int id_student = Convert.ToInt32(user.ID); try { student student = Model.GetStudent(id_student); Model.UpdateLastSeen("Sửa Sinh Viên " + student.name, Url.Action("EditStudent/" + user.ID)); ViewBag.ListSpecialities = Model.GetSpecialities(); ViewBag.ListClass = Model.GetClasses(); return(View(student)); } catch (Exception) { return(View("Error")); } }