예제 #1
0
        public async Task <IActionResult> ConfirmForMatch(int userId, int matchId)
        {
            if (userId != int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value))
            {
                return(Unauthorized());
            }

            return(Ok(await _matchesService.ConfirmForMatch(userId, matchId)));
        }