Views: 11K
Replies: 2
Archived
|
How does one handle business rule messages between layers?Hi,
I have an n-tier layer application. I want to handle business rules messages and show client user-friendly messages. For example, the email entered is not unique and cannot be added to the database. How do you handle this validation rule between the layers (DAL,PLL,BLL)? Thanks, Best Regards. Volkan Genç, Jun 07, 2012
|
|
Reply 1I suggest you to utilize the Builder Design Pattern in this case.
Please follow the instructions in my blog http://spradip.wordpress.com/2011/01/06/builder-pattern-in-c/ Pradip Shrestha, Jun 14, 2012
|
|
Reply 2There are many different ways to handle this type of response.
Some of them are:
The process you choose is generally determined by the structure of your application. There are most likely many other ways of achieving this, but these are some ideas. Regardless of how you handle this, you can always provide your own friendly responses back to the UI. I hope this helps. Thanks, King Wilder King Wilder, Jun 11, 2012
|