BolfTracker.Infrastructure.EntityFramework.PlayerGameStatisticsRepository.GetByPlayer C# (CSharp) Метод

GetByPlayer() публичный Метод

public GetByPlayer ( int playerId ) : IEnumerable
playerId int
Результат IEnumerable
        public IEnumerable<PlayerGameStatistics> GetByPlayer(int playerId)
        {
            using (var context = new BolfTrackerContext())
            {
                var playerGameStatistics = context.PlayerGameStatistics.Include(pgs => pgs.Player).Include(pgs => pgs.Game).Where(pgs => pgs.Player.Id == playerId).ToList();

                return playerGameStatistics;
            }
        }