public int GetIDDotDangKy() { var dal = new DotDangKyDAL(); int id = dal.GetIDDotDangKy(); return(id); }
public JsonResult CheckDotDangKy() { var dotDangKyDAL = new DotDangKyDAL(); _idDDK = dotDangKyDAL.GetIDDotDangKy(); if (_idDDK > 0) { return(Json(new { IsError = false, Message = "" }, JsonRequestBehavior.AllowGet)); } return(Json(new { IsError = true, Message = "Hiện tại chưa có đợt đăng ký nào được mở" }, JsonRequestBehavior.AllowGet)); }