public List <MerchantProfile> GetMerchantVerifyListL2(string cellphone, int countryId, int?status, string orderByFiled, bool isDesc, int pageSize, int index, out int totalCount)
        {
            totalCount = 0;
            GetMerchnatVerifyListIM input = new GetMerchnatVerifyListIM();

            input.cellphone    = cellphone;
            input.countryId    = countryId;
            input.status       = status;
            input.orderByFiled = orderByFiled;
            input.isDesc       = isDesc;
            input.pageSize     = pageSize;
            input.index        = index;

            var url   = $"{baseAddress}/GetMerchantVerifyListL2";
            var param = JsonConvert.SerializeObject(input);

            _log.Info("GetMerchantVerifyListL2 url = " + url);
            _log.Info("GetMerchantVerifyListL2 input = " + param);
            _log.Info("GetMerchantVerifyListL2 headers = " + JsonConvert.SerializeObject(headers));

            var result = RestUtilities.PostJson(url, headers, param);

            _log.Info("GetMerchantVerifyListL2 result = " + result);
            var data = JsonConvert.DeserializeObject <ServiceResult <GetMerchnatVerifyListOM> >(result);

            if (data.Code == 0)
            {
                totalCount = data.Data.TotalCount;
                return(data.Data.ResultSet);
            }
            throw new CommonException(10000, data.Message);
        }
Exemple #2
0
        public ServiceResult <GetMerchnatVerifyListOM> GetMerchantVerifyListL2(GetMerchnatVerifyListIM input)
        {
            int totalCount = 0;
            MerchantProfileDAC      dac    = new MerchantProfileDAC();
            GetMerchnatVerifyListOM output = new GetMerchnatVerifyListOM();

            output.ResultSet  = dac.GetMerchantVerifyListL2(input.cellphone, input.countryId, input.status, input.orderByFiled, input.isDesc, input.pageSize, input.index, out totalCount);
            output.TotalCount = totalCount;
            return(ResultHelper.OKResult(output));
        }