public bool ContactTypeDelete(ContactType contacttype)
        {
            return Execute<bool>(dal =>
            {
                ContactType contacttypeDelete = dal.ContactType.Where(x => x.ContactTypeID == contacttype.ContactTypeID).FirstOrDefault();
                if (contacttypeDelete != null)
                {
                    dal.ContactType.DeleteOnSubmit(contacttypeDelete);
                    dal.SubmitChanges();
                    return true;
                }
                return false;

            });
        }
        public bool ContactTypeUpdate(ContactType contacttype)
        {
            return Execute<bool>(dal =>
            {
                ContactType contacttypeUpdate = dal.ContactType.Where(x => x.ContactTypeID == contacttype.ContactTypeID).FirstOrDefault();
                if (contacttypeUpdate != null)
                {
                    contacttypeUpdate.ContactTypeID = contacttype.ContactTypeID;
                    contacttypeUpdate.Name = contacttype.Name;
                    contacttypeUpdate.ModifiedDate = contacttype.ModifiedDate;

                    dal.SubmitChanges();
                    return true;
                }
                return false;

            });
        }
 partial void DeleteContactType(ContactType instance);
 partial void UpdateContactType(ContactType instance);
 partial void InsertContactType(ContactType instance);
 public void ContactTypeUpdate(ContactType contacttype)
 {
     adventureWorks_BC.ContactTypeUpdate(contacttype);
 }
 public void ContactTypeAdd(ContactType contacttype)
 {
     adventureWorks_BC.ContactTypeAdd(contacttype);
 }