public void UpdateStockStatus(STOCKSTATUS newStockStatus) { // Ignore if no change actually made if (newStockStatus == _stockStatus) { return; } AssetDAO lwDataAccess = new AssetDAO(); // Audit the status change Asset oldAsset = new Asset(this); // Update the object and the database _stockStatus = newStockStatus; lwDataAccess.AssetUpdateStockStatus(_assetID, newStockStatus); // ...then audit the change AuditChanges(oldAsset); }