public ActionResult SaveTest(DECHUAN de) { Guid idsub = new SubjectDAO().ShowAllSubIDSingle(de.MaDeChuan).SubjectID; de.MaMon = idsub; de.MaDeChuan = -1; int id = new DeChuanDAO().luuDeChuan(de); return(Json(id, JsonRequestBehavior.AllowGet)); }
public JsonResult showAllTest(int id = -1) { var kq = new DeChuanDAO().GetListSingleDC(id); if (kq == null) { kq = null; } return(Json(kq, JsonRequestBehavior.AllowGet)); }
public ActionResult taoDeTron(int id) { int x = new DeChuanDAO().tronDeThi(id); string kq; if (x == -1) { kq = "Lỗi trộn đề"; } else { kq = "Trộn đề thành công"; } return(Json(kq, JsonRequestBehavior.AllowGet)); }
public ActionResult moKhoaDeChuan(int idde) { int x = new DeChuanDAO().khoaDeChuan(false, idde); string kq; if (x == -1) { kq = "Không thể mở khóa đề chuẩn"; } else { kq = "Mở khóa đề chuẩn thành công"; } return(Json(kq, JsonRequestBehavior.AllowGet)); }
public ActionResult PhanDeTS(int idcathi) { var kq = new DeChuanDAO().PhanDeChoThiSinh(idcathi); return(Json(kq, JsonRequestBehavior.AllowGet)); }
public ActionResult deleteTest(int id) { bool x = new DeChuanDAO().DeleteDECHUAN(id); return(Json(x, JsonRequestBehavior.AllowGet)); }
public JsonResult getListDeTron(int idde) { List <detron> dt = new DeChuanDAO().getListDeTron(idde); return(Json(dt, JsonRequestBehavior.AllowGet)); }