Beispiel #1
0
        public List <ContactModel> GetContactsList()
        {
            SqlConnectionDB dataBase = new SqlConnectionDB("SqlConnection");

            List <ContactModel> contactsList = new List <ContactModel>();

            List <ContactsTable> contactsTable = dataBase.Fetch <ContactsTable>("select * from ContactsTable;");

            Mapper.Map(contactsTable, contactsList);

            return(contactsList);
        }