Beispiel #1
0
        public async Task <IActionResult> SetRatingAsync(string gameId, int value)
        {
            var userId = User?.GetId();
            await _ratingService.CreateOrUpdateAsync(gameId, userId, value);

            return(RedirectToAction(nameof(GetRatingAsync), new { gameId }));
        }