public ActionResult ThemHocPhan() { ViewBag.bomon_list = new SelectList(BoMonService.DanhSachBoMon(), "BoMonID", "TenBoMon"); return(PartialView("_ThemHocPhan")); }
public ActionResult ThemGiangVien() { ViewBag.bomon_list = new SelectList(BoMonService.DanhSachBoMon(), "BoMonID", "TenBoMon"); ViewBag.donvi_list = new SelectList(DonViService.DanhSachDonvi(), "DonViID", "TenDonVi"); return(PartialView("_ThemGiangVien")); }
public ActionResult DanhSachBoMon() { var viewModel = BoMonService.DanhSachBoMon(); return(Json(new { data = viewModel }, JsonRequestBehavior.AllowGet)); }