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

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

Retrieves all team IDs of which the provided user is a member.
public static GetTeamIdsFromUserId ( int userId ) : List
userId int
Результат List
        public static List<int> GetTeamIdsFromUserId(int userId)
        {
            using (SqlConnection connection = ConnectionManager.GetConnection())
            {
                var data = new ActivEarthDataProvidersDataContext(connection);
                return (from c in data.TeamMemberDataProviders
                        where c.user_id == userId
                        select c.team_id).ToList();
            }
        }