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); }
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); }