Example #1
0
        public async Task <CurrencyQueryResponse> Get(int id)
        {
            var currency = await _currencyManager.GetByIdAsync(id);

            return(currency != null?_mapper.Map <CurrencyQueryResponse>(currency)
                       : throw new ApiProblemDetailsException($"Record with id: {id} does not exist.", Status404NotFound));
        }