ActivEarth.DAO.ContestDAO.GetContestIdsFromGroupId C# (CSharp) Метод

GetContestIdsFromGroupId() публичный статический Метод

Returns the list of IDs of all contests that a group is currently participating in.
public static GetContestIdsFromGroupId ( int groupId ) : List
groupId int ID of the group to search for.
Результат List
        public static List<int> GetContestIdsFromGroupId(int groupId)
        {
            using (SqlConnection connection = ConnectionManager.GetConnection())
            {
                var data = new ActivEarthDataProvidersDataContext(connection);
                return (from c in data.TeamDataProviders
                        where c.group_id == groupId
                        select c.contest_id).ToList();
            }
        }