public ContactModel GetContact(int Id) { SqlConnectionDB dataBase = new SqlConnectionDB("SqlConnection"); ContactModel contact = new ContactModel(); ContactsTable contactTable = new ContactsTable(); contactTable = dataBase.Single <ContactsTable>("WHERE Id = @0", Id); Mapper.Map(contactTable, contact); return(contact); }