Exemplo n.º 1
0
        public List <ContactEntity> ReadAllFromDatabase()
        {
            using (var ipPhoneEntities = new IPPhoneEntities())
            {
                var contactEntities = new List <ContactEntity>();

                ipPhoneEntities.Contacts.ForEach(c => contactEntities.Add(ContactEntity.GetInstance(c)));

                return(contactEntities);
            }
        }