Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
/// <summary> /// to get teacher list from Dept id /// </summary> /// <param name="deptId"></param> /// <returns></returns> public JsonResult GetTeacherByDeptId(int deptId) { CourseAssignManager aCourseAssignManager = new CourseAssignManager(); List <TeacherModel> teachers = new List <TeacherModel>(); teachers = aCourseAssignManager.GetTeachersByDeptId(deptId); //var teachers = db.Teachers.Where(m => m.DepartmentId == deptId).ToList(); //return Json(teachers, JsonRequestBehavior.AllowGet); return(Json(teachers, JsonRequestBehavior.AllowGet)); }