ASP.NET MVC Core - ViewModel in Business Layer and implement data annotation

296 Views Asked by At

I am building an application in which I have Models, ViewModels added in the business layer, and Controller and views in the Web application. Now I want to apply data annotation through the view model which is located in the Business layer. My questions is how can I use data annotation which is applied in viewmodel that is created in different layer i.e in my case in the business layer.

0

There are 0 best solutions below