Esempio n. 1
0
        public async Task <IEnumerable <CurrencyQueryResponse> > Get([FromQuery] UrlQueryParameters urlQueryParameters)
        {
            var data = await _currencyManager.GetCurrenciesAsync(urlQueryParameters);

            var currencies = _mapper.Map <IEnumerable <CurrencyQueryResponse> >(data.Currencies);

            Response.Headers.Add("X-Pagination", JsonSerializer.Serialize(data.Pagination));

            return(currencies);
        }