Пример #1
0
        public async Task <ActionResult <CurrencyPurchaseDTO> > GetPurchase(int id)
        {
            CurrencyPurchase purchase = await _curreciesService.GetPurchaseAsync(id);

            if (purchase == null)
            {
                return(NotFound());
            }

            return(Ok(_mapper.Map <CurrencyPurchaseDTO>(purchase)));
        }