public ApiResponse <TaiKhoanModel> GetAllTaiKhoan() { var apiResponse = CoreRepo.GetApiResponse <TaiKhoanModel>(Constance.Constance.UrlApi, "TaiKhoan/GetAllTaiKhoan/"); if (apiResponse.Status == (int)HttpStatusCode.NotFound) { return(apiResponse); } return(apiResponse); }
public ApiResponse <LoaiCauHoiModel> GetLoaiCauHoiById(string Id) { var list = CoreRepo.GetApiResponse <LoaiCauHoiModel>(Constance.Constance.UrlApi, "LoaiCauHoi/GetLoaiCauHoiById/" + Id); if (list.Status == (int)HttpStatusCode.NotFound) { return(list); } return(list); }
public ApiResponse <TaiKhoanModel> getTaiKhoanInfo(string userName) { var apiResponse = CoreRepo.GetApiResponse <TaiKhoanModel>(Constance.Constance.UrlApi, "TaiKhoan/GetTaiKhoanById/" + userName); if (apiResponse.Status == (int)HttpStatusCode.NotFound) { return(apiResponse); } return(apiResponse); }
public List <QuyenModel> GetQuyenToDropDownList() { var list = CoreRepo.GetApiResponse <QuyenModel>(Constance.Constance.UrlApi, "Quyens/GetAllQuyen/"); if (list.Status == (int)HttpStatusCode.NotFound) { return(list.Data); } return(list.Data); }
public List <LoaiCauHoiModel> GetLoaiCauHoiToDropDownList() { var list = CoreRepo.GetApiResponse <LoaiCauHoiModel>(Constance.Constance.UrlApi, "LoaiCauHoi/GetAllLoaiCauHoi/"); if (list.Status == (int)HttpStatusCode.NotFound) { return(list.Data); } return(list.Data); }
public ApiResponse <QuyenModel> GetQuyenById(string Id) { var list = CoreRepo.GetApiResponse <QuyenModel>(Constance.Constance.UrlApi, "Quyens/GetQuyenById/" + Id); if (list.Status == (int)HttpStatusCode.NotFound) { return(list); } return(list); }
public ApiResponse <MonModel> GetMonThiById(string id) { var list = CoreRepo.GetApiResponse <MonModel>(Constance.Constance.UrlApi, "MonThi/GetMonThiById/" + id); if (list.Status == (int)HttpStatusCode.NotFound) { return(list); } return(list); }
public List <MonModel> GetMonThiToDropDownList() { var list = CoreRepo.GetApiResponse <MonModel>(Constance.Constance.UrlApi, "MonThi/GetAllMonThi/"); if (list.Status == (int)HttpStatusCode.NotFound) { return(list.Data); } return(list.Data); }
public ApiResponse <CauHoiModel> GetAllCauHoi() { var list = CoreRepo.GetApiResponse <CauHoiModel>(Constance.Constance.UrlApi, "CauHoi/GetAllCauHoi/"); if (list.Status == (int)HttpStatusCode.NotFound) { return(list); } return(list); }
public ApiResponse <DeThiModel> GetDeThiByID(string ID) { var list = CoreRepo.GetApiResponse <DeThiModel>(Constance.Constance.UrlApi, "DeThi/GetDeThiById/" + ID); if (list.Status == (int)HttpStatusCode.NotFound) { return(list); } return(list); }