public ContactCard GetContactCard(int id) { using (var daoFactory = new DaoFactory()) { var daoContacts = daoFactory.CreateContactCardDao(Tenant, User); var contactCard = daoContacts.GetContactCard(id); return(contactCard); } }
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); } }
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); } }