Beispiel #1
0
        /// <summary>
        /// Returns a list of all watchlists currently created by the user
        /// </summary>
        public async Task <ActionResult <List <WatchlistSummaryDto> > > Get()
        {
            var userId     = GetUserId();
            var watchlists = await _watchlistService.GetAllFromClaimAsync(userId);

            return(new OkObjectResult(_mapper.Map <List <WatchlistSummaryDto> >(watchlists)));
            // return new OkObjectResult(watchlists);
        }