public bool Insert(int BusinessEntityId, int AddressId, int AddressTypeId, Guid RowGuid, DateTime ModifiedDate) { BusinessEntityAddressDAC businessentityaddressComponent = new BusinessEntityAddressDAC(); int BusinessEntityAddressId = 0; return(businessentityaddressComponent.InsertNewBusinessEntityAddress(ref BusinessEntityAddressId, BusinessEntityId, AddressId, AddressTypeId, RowGuid, ModifiedDate)); }
public bool Insert(BusinessEntityAddress businessentityaddress) { int autonumber = 0; BusinessEntityAddressDAC businessentityaddressComponent = new BusinessEntityAddressDAC(); bool endedSuccessfuly = businessentityaddressComponent.InsertNewBusinessEntityAddress(ref autonumber, businessentityaddress.BusinessEntityId, businessentityaddress.AddressId, businessentityaddress.AddressTypeId, businessentityaddress.RowGuid, businessentityaddress.ModifiedDate); if (endedSuccessfuly) { businessentityaddress.BusinessEntityAddressId = autonumber; } return(endedSuccessfuly); }