Beispiel #1
0
        public static List<int> GetContacIDListByUserID(int userID)
        {
            SkypeDataClassesDataContext sdc = new SkypeDataClassesDataContext();
            ISingleResult<SP_ContactIDList_SEL_byUserIDResult> contacts = sdc.SP_ContactIDList_SEL_byUserID(userID);

            List<int> idList = new List<int>();

            foreach (SP_ContactIDList_SEL_byUserIDResult contact in contacts)
            {
                idList.Add(contact.ContactID);
            }

            return idList;
        }