Exemple #1
0
        public async Task <ActionResult> FavouriteAsync(int id, [FromBody] DeckModel model, CancellationToken cancellationToken)
        {
            var userId = (await GetUserAsync(cancellationToken: cancellationToken)).Id;

            await _deckService.FavouriteDeckAsync(id, userId, model.IsFavourited, cancellationToken : cancellationToken);

            return(Ok());
        }