Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is the best methodology for messaging between business layer and presentation layer in .NET?

Three-Tier architecture in .NET web application. It would be better to include how to handle exceptions in business layer and what to send to presentation layer at this case.

user-image
Question ajoutée par Mahmoud Fakhry , Technical Team Lead , Ministry of Commerce
Date de publication: 2015/03/27
Utilisateur supprimé
par Utilisateur supprimé

You must create a Controller class and pass every call/message through it between the business layer and presentation layer.

Mahnoor Fatima
par Mahnoor Fatima , Software Engineer , Higher Education Commission

You can create a controller to pass any message b/w business layer and presentation layer

Rameez Ahmed Sayad
par Rameez Ahmed Sayad , .Net Consultant , Proximus Luxembourg

Any2 layers (physically or logically separated) will always be better if loosely coupled and both depend on an interface rather than an actual  implementation.

Incase of the business and presentation.

Presentation would call maybe IBusiness method expecting an IModelInput and returning an IModelOutput .

More Questions Like This