|
IRetailerServiceGetAllOwnersForRetailer Method |
Gets all owners associated with the given retailer
Namespace: Infosoft.Common.Contracts.ServiceContracts.RetailAssembly: Infosoft.Common.Contracts (in Infosoft.Common.Contracts.dll) Version: 4.00.0.0
Syntax Remarks
When a retailer with RetailerNumber = 12345 is given, it looks for the OldRetailerNumber and NewRetailerNumber properties on the given retailer Object.
Getting previous Owners -
If the property on given retailer, OldRetailerNumber != 0, this implies there was a owner change, and the Previous Owner's number is the value of property OldRetailerNumber.
Hence it retrieves the previous retailer(owner). This is done recursively untill the first owner is found.
Getting future(next) owners -
If the property on given retailer NewRetailerNumber != 0, this implies there was an owner change, and the successive Owner Number to the given retailer(owner) is the value of NewRetailerNumber property
Hence it retrieves the next retailer(owner). This is agian done recursively untill the NewRetailerNumber property on the retrieved Onwer will be zero, which would be the current owner.
See Also