public ActionResult DeleteSubject(int model) { ExamSubjectModel mode = new ExamSubjectModel(); mode.Delete_ExamSubject(model); return(Json(new { tableData = mode.ListExamSubject }, JsonRequestBehavior.AllowGet)); }
public ActionResult GetSubjectInfo(string ExamType, string SubjectName) { ExamSubjectModel model = new ExamSubjectModel(); model.GetSubjectName(ExamType, SubjectName); return(Json(new { tableData = model.ListExamSubject, VexamSubject = model.VexamSubject, LExamType = model.LExamType }, JsonRequestBehavior.AllowGet)); }
public ActionResult SaveSubjectInfo(ExamSubjectModel model) { var username = this.UserNameContext; var Result = model.SaveSubject(username); return(Json(new { Result, tableData = model.ListExamSubject }, JsonRequestBehavior.AllowGet)); }
public ActionResult MaintainExamSubject() { ExamSubjectModel model = new ExamSubjectModel(); return(View(model)); }