コード例 #1
0
        public ContactCard GetContactCard(int id)
        {
            using (var daoFactory = new DaoFactory())
            {
                var daoContacts = daoFactory.CreateContactCardDao(Tenant, User);

                var contactCard = daoContacts.GetContactCard(id);

                return(contactCard);
            }
        }
コード例 #2
0
        public int GetContactCardsCount(IContactsExp exp)
        {
            if (exp == null)
            {
                throw new ArgumentNullException("exp");
            }

            using (var daoFactory = new DaoFactory())
            {
                var daoContacts = daoFactory.CreateContactCardDao(Tenant, User);

                var count = daoContacts.GetContactCardsCount(exp);

                return(count);
            }
        }
コード例 #3
0
        public List <ContactCard> GetContactCards(IContactsExp exp)
        {
            if (exp == null)
            {
                throw new ArgumentNullException("exp");
            }

            using (var daoFactory = new DaoFactory())
            {
                var daoContacts = daoFactory.CreateContactCardDao(Tenant, User);

                var list = daoContacts.GetContactCards(exp);

                return(list);
            }
        }