Пример #1
0
        public ApiResponse <TaiKhoanModel> GetAllTaiKhoan()
        {
            var apiResponse = CoreRepo.GetApiResponse <TaiKhoanModel>(Constance.Constance.UrlApi, "TaiKhoan/GetAllTaiKhoan/");

            if (apiResponse.Status == (int)HttpStatusCode.NotFound)
            {
                return(apiResponse);
            }

            return(apiResponse);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }
Пример #5
0
        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);
        }
Пример #6
0
        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);
        }
Пример #7
0
        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);
        }
Пример #8
0
        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);
        }
Пример #9
0
        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);
        }