public bool Insert( string AddressLine1, string AddressLine2, string AddressLine3, string CountryRegionCode, string City, int StateProvinceId, string PostalCode, string ZipCode, string SpatialLocation, Guid RowGuid, DateTime ModifiedDate) { AddressDAC addressComponent = new AddressDAC(); int AddressId = 0; return addressComponent.InsertNewAddress( ref AddressId, AddressLine1, AddressLine2, AddressLine3, CountryRegionCode, City, StateProvinceId, PostalCode, ZipCode, SpatialLocation, RowGuid, ModifiedDate); }
public bool Insert(Address address) { int autonumber = 0; AddressDAC addressComponent = new AddressDAC(); bool endedSuccessfuly = addressComponent.InsertNewAddress( ref autonumber, address.AddressLine1, address.AddressLine2, address.AddressLine3, address.CountryRegionCode, address.City, address.StateProvinceId, address.PostalCode, address.ZipCode, address.SpatialLocation, address.RowGuid, address.ModifiedDate); if(endedSuccessfuly) { address.AddressId = autonumber; } return endedSuccessfuly; }