Ejemplo n.º 1
0
        public AllAccount GetUpdate(string AccountID)
        {
            AllAccount objcontacts = new AllAccount();
            Contact_Repository acctRepo = new Contact_Repository();
            objcontacts.singleContact = Contact.TblToData(acctRepo.GetUpdate(AccountID));

            if (objcontacts.singleContact == null) return null;
            return objcontacts;
        }
Ejemplo n.º 2
0
        public ConsoleClasses.AllAccount GetAllContact()
        {
            try
            {
                AllAccount objContacts = new AllAccount();
                Contact_Repository companyRepo = new Contact_Repository();
                objContacts.Contacts  = Contact.TblToData(companyRepo.GetContacts());

                return objContacts;
            }
            catch (Exception)
            {

                throw;
            }
        }