Esempio n. 1
0
        public async Task <List <Guid> > CheckVideoIdsForUserList(CheckVideoIdsForUserListParam param, int userId)
        {
            _logger.LogInformation("userId:" + userId);
            var videoIds = await _catalogDb.UserVideoLists
                           .Where(uvl => uvl.UserId == userId && param.VideoIds.Contains(uvl.Video.Id))
                           .Select(uvl => uvl.Video.Id)
                           .ToListAsync();

            return(videoIds);
        }
Esempio n. 2
0
        public async Task <ActionResult <List <Guid> > > CheckVideoIdsForUserList(CheckVideoIdsForUserListParam param)
        {
            var videos = await _catalogService.CheckVideoIdsForUserList(param, User.UserId());

            return(videos);
        }