BO Object Question

BO Object Question

Old forum URL: forums.lhotka.net/forums/t/3239.aspx


lprada posted on Friday, July 20, 2007

I need to get a list of Invoices by to criterias. by status and by client, what should I do, Have to bo like InvoiceListByStatus and InvoiceListByClient or one BO InvoiceList and two criteria classes?

RockfordLhotka replied on Saturday, July 21, 2007

If the responsibility, purpose and use of the invoice list is the same in both cases, and only the selection criteria are different, then you should just have two criteria classes.

If the invoice lists are used differently, or need different behaviors, then they should be different objects.

Copyright (c) Marimer LLC