Beispiel #1
0
        public static APIRespModel GetCarsList(string sort = "Make", int page = 1, int size = 10)
        {
            APIReqModel req = new APIReqModel();

            req.sort       = sort;
            req.pageSize   = size;
            req.pageNumber = page;
            return(CarRepository.GatCarsList(req));
        }
Beispiel #2
0
        public static APIRespModel GatCarsList(APIReqModel req)
        {
            APIRespModel resp = new APIRespModel();
            var          parm = JsonHelper.Serialize(req);
            var          re   = HttpHelper.request(Config.APIServer, parm, 30000);

            resp = JsonHelper.Deserialize <APIRespModel>(re);

            return(resp);
        }