Last post Oct 28, 2015 08:59 AM by deadtroll
Oct 28, 2015 08:27 AM|vijayd48|LINK
My project architecture is like this
MVC web app -- > BAL Layer -- > WEB API 2 --> Data Layer -- > Database
and i have view model as a separate class library which is used in first three layers i.e upto web api2 layer.
My question is , for each request we are calling web api in asynchronus. is it a good way.
Please clarify me.
Oct 28, 2015 08:59 AM|DeadTroll|LINK
Nothing wrong with it. Its not unusual to have different business models than UI models though. Keeping that in mind dont try and and force the business layer to use the UI models. Business models
can be closer in relation to the data models or can be their own unique models as well.