What layers required for make asp.net core 2 project for prevent repeat data ?
ASP.NET
4
Posts
4
Posters
2
Views
1
Watching
-
-
-
Anything related to data and database connection should be placed inside your Data Access layer. Anything related to Business rules and validation should be placed inside your Business Layer or whatever you want to call it.
-
In most of our web services I use the repository pattern. Isolating data access from business rules from controller/services. Here is a link to some docs on Microsoft. This isn't specific to Dotnet Core, but the same pattern can still be applied.