Ejemplo n.º 1
0
        public async Task <Watchlist> GetByIdAsync(long id)
        {
            var item = await _repository.FindAsync(id);

            if (item == null)
            {
                throw new NotFoundException(ErrorCode.MarketNotFount, "Watchlist not found");
            }

            return(item);
        }