Пример #1
0
        public List <Contact> GetContacts()
        {
            var listContact        = _contactAdminRepository.GetListContact();
            var listContactDisplay = new List <Contact>();

            foreach (Contact contact in listContact)
            {
                if (contact.status == true)
                {
                    listContactDisplay.Add(contact);
                }
            }
            return(listContactDisplay);
        }
Пример #2
0
 public List <Contact> GetListContact()
 {
     return(_contactAdminRepository.GetListContact());
 }