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

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