ActivEarth.DAO.TeamDAO.GetContestIdFromTeamId C# (CSharp) Метод

GetContestIdFromTeamId() приватный статический Метод

Retrieves the contest ID for the contest that a team is participating in.
private static GetContestIdFromTeamId ( int teamId ) : int
teamId int Team ID to query.
Результат int
        private static int GetContestIdFromTeamId(int teamId)
        {
            using (SqlConnection connection = ConnectionManager.GetConnection())
            {
                var data = new ActivEarthDataProvidersDataContext(connection);
                return (from c in data.TeamDataProviders
                        where c.id == teamId
                        select c.contest_id).FirstOrDefault();
            }
        }