コード例 #1
0
    public RVal GetShopCollection(string country)
    {
        var url    = _url + "/api/GetAllCollections?CountryId=" + country;
        var helper = new APIHelper {
            Url = url
        };
        var rval = new RVal();

        try
        {
            rval = helper.GETApi();
            //  AddLog(helper);
            if (rval.RStatus)
            {
                rval.DVal = JsonConvert.DeserializeObject <List <PrescoShopCollect> >(rval.RMsg);
            }
        }
        catch (Exception ex)
        {
            APIHelper.AddLog(rval.RMsg, ex.Message);
        }

        return(rval);
    }