コード例 #1
0
        public PagedItems <CurrencyRateDTO> Get([FromQuery] int pageNumber = 0, int pageSize = 0, string sortTerm = null, bool sortDesc = false, string searchTerm = null)
        {
            var currencyRates = _srv.Get(pageNumber, pageSize, sortTerm, sortDesc, searchTerm);

            return(new PagedItems <CurrencyRateDTO> {
                Items = _srv.MapToDTO(currencyRates.Items),
                PageNumber = currencyRates.PageNumber,
                TotalPages = currencyRates.TotalPages
            });
        }