Example #1
0
        public IEnumerable <Country> GetCountries()
        {
            var request = new GetCountriesRequest();
            var result  = clientProxy.Execute(client => client.GetCountries(request));

            return(result.GetCountriesResult.AsEnumerable().Select(MapCountryDtoToCountry));
        }
Example #2
0
        public IEnumerable <Person> GetPersons()
        {
            var request = new GetPersonsRequest();
            var result  = clientProxy.Execute(client => client.GetPersons(request));

            return(result.GetPersonsResult.AsEnumerable().Select(MapPersonDtoToPerson));
        }