public ActionResult ListStudent() { var result = facultyService.GetAllFaculty(); ViewBag.id2 = "ListStudent"; // Tạo SelectList SelectList facultyList = new SelectList(result, "ID", "FacultyName"); // Set vào ViewBag ViewBag.CategoryList = facultyList; return(View()); }
public JsonResult listKhoaHoc() { var result = facultyService.GetAllFaculty(); return(Json(result, JsonRequestBehavior.AllowGet)); }