public int PostPerson(VW_Person person)
        {
            BergerEntities userEntities = new BergerEntities();

            userEntities.People.Add(GetPerson(person));
            userEntities.SaveChanges();

            return(person.BusinessEntityID);
        }
        public int PostEmailAddress(VW_Person person)
        {
            BergerEntities userEntities = new BergerEntities();

            userEntities.EmailAddresses.Add(GetEmailAddress(person));

            userEntities.SaveChanges();

            return(person.BusinessEntityID);
        }
        public int PostBusinessEntity(string contactTypeName)
        {
            BergerEntities userEntities = new BergerEntities();

            BusinessEntity businessEntity = new BusinessEntity();

            businessEntity.ContactTypeID = GetContactTypes(contactTypeName);
            businessEntity.ModifiedDate  = DateTime.Today;
            businessEntity = userEntities.BusinessEntities.Add(businessEntity);

            userEntities.SaveChanges();

            return(businessEntity.BusinessEntityID);
        }