public JsonResult getclass() { IEnumerable <teacherviewmodel> depts = rept.GetAll(); return(Json(depts.ToList(), JsonRequestBehavior.AllowGet)); }
public JsonResult getclass() { IEnumerable <teacherviewmodel> depts = rept.GetAll(); return(Json(depts.ToList(), JsonRequestBehavior.AllowGet)); }