Ejemplo n.º 1
0
        public async Task<ActionResult<TradeViewModel>> GetById(Guid id)
        {
            var trade = _mapper.Map<TradeViewModel>(await _tradeRepository.GetByIdTradeSectorCategory(id));

            if (trade == null) return NotFound();

            return trade;
        }