public void UpdateContact(Contact contact)
        {
            Contactdb.Contact ContactTable = new Contactdb.Contact();

            ContactTable = ConfigurationServices.mapper.Map <Contact, Contactdb.Contact>(contact);
            ContactTable.AuditFieldsOnCreate();
            DB.Update(ContactTable);
        }
 public Contact AddContact(Contact contact)
 {
     Contactdb.Contact contactTable = new Contactdb.Contact();
     contactTable = ConfigurationServices.mapper.Map <Contact, Contactdb.Contact>(contact);
     contactTable.AuditFieldsOnCreate();
     DB.Insert(contactTable);
     contact.Id = contactTable.Id;
     return(contact);
 }