public async Task <IActionResult> CreateBusinessEntityContact([FromBody] Person.BusinessEntityContact value)
        {
            _db.Person_BusinessEntityContact.Add(value);
            await _db.SaveChangesAsync();

            return(Ok(value));
        }
        public async Task <IActionResult> EditBusinessEntityContact(int businessEntityID, int contactTypeID, int personID, [FromBody] Person.BusinessEntityContact value)
        {
            var existing = await _db.Person_BusinessEntityContact.FirstOrDefaultAsync(x => x.BusinessEntityID == businessEntityID && x.ContactTypeID == contactTypeID && x.PersonID == personID);

            if (existing == null)
            {
                return(NotFound());
            }

            existing.BusinessEntityID = value.BusinessEntityID;
            existing.PersonID         = value.PersonID;
            existing.ContactTypeID    = value.ContactTypeID;
            existing.rowguid          = value.rowguid;
            existing.ModifiedDate     = value.ModifiedDate;

            _db.Person_BusinessEntityContact.Update(existing);
            await _db.SaveChangesAsync();

            return(NoContent());
        }