I have a number of Busines Objects (e.g. Customers,Products,Specialproces,TransactionHeader,Transactiondetail) and one common requirement is to return a Price, which is based on ALL these business objects. e.g. A Customer Price can be dependent on who the Customer is, what the Product is, the Transaction date and the Qty ordered.
My method would be somsthing like
Getprice(string Customer , string Product, date Trandate, double QtyOrdered, out SpecialPricce)
{ }
This price will normally end up in the Transactiondetail Business Object , but not always if for instance I am just doing an enquiry.
I am wondering where is the best place for this, In one of the Business Objects above, or a separate Class
Any comments would be welcomed