public IEnumerable <Country> GetCountries() { var request = new GetCountriesRequest(); var result = clientProxy.Execute(client => client.GetCountries(request)); return(result.GetCountriesResult.AsEnumerable().Select(MapCountryDtoToCountry)); }
public IEnumerable <Person> GetPersons() { var request = new GetPersonsRequest(); var result = clientProxy.Execute(client => client.GetPersons(request)); return(result.GetPersonsResult.AsEnumerable().Select(MapPersonDtoToPerson)); }