public JsonResult AddSubject(Subject rec) { SubjectServices services = new SubjectServices(); services.AddSubject(rec); return(Json(new { msg = "save" }, JsonRequestBehavior.AllowGet)); }
public JsonResult AddSubject(Subject rec) { SubjectServices services = new SubjectServices(); services.AddSubject(rec); var cl_list = db.Classes.ToList(); ViewBag.cl = cl_list; return(Json(new { msg = "save" }, JsonRequestBehavior.AllowGet)); }