Beispiel #1
0
        public async Task <Player> GetPlayerById(int id, string userId)
        {
            var team = await _repository.GetById(id);

            if (team == null)
            {
                return(null);
            }
            return(team.ApplicationUserId == userId ? team : null);
        }