示例#1
0
        public List <Contact> GetContacts(Group gr)
        {
            ContactsService cs = new ContactsService();

            return(cs.GetAll(c => c.Groups.Contains(gr)));
        }
示例#2
0
        public Contact GetContact(int id)
        {
            ContactsService cs = new ContactsService();

            return(cs.GetByID(id));
        }