Пример #1
0
        public async Task <IActionResult> GetWatchNext()
        {
            var record = await _watchNextReader.GetActiveWatchNext(_currentUserAccessor.CurrentUser.Id);

            if (record == null)
            {
                return(NotFound());
            }

            return(Ok(FilmResponse.FromRecord(record)));
        }
 private async Task <bool> UserDoesNotHaveWatchNextSelection(string userId, CancellationToken cancellationToken)
 {
     return((await _watchNextReader.GetActiveWatchNext(userId)) == null);
 }