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()); } }
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()); } }