示例#1
0
        public async Task <TeamCollectionModel> GetAll()
        {
            HttpResponseMessage response = await apiClient.GetAsync("Kadabra/Team/GetAll");

            if (response.IsSuccessStatusCode)
            {
                return(await response.Content.ReadAsAsync <TeamCollectionModel>());
            }
            else
            {
                return(new TeamCollectionModel());
            }
        }
示例#2
0
        public async Task <CountryCollectionModel> GetAllCountries()
        {
            HttpResponseMessage response = await apiClient.GetAsync("Kadabra/Country/GetAllCountries");

            if (response.IsSuccessStatusCode)
            {
                return(await response.Content.ReadAsAsync <CountryCollectionModel>());
            }
            else
            {
                return(new CountryCollectionModel());
            }
        }