I have a solution with one project - the Entity Framework and my ASP MVC project, I am looking for some tips or opinions on the idea of creating at the top of my POCO and DBContext objects - a business logic level with static classes that have all methods (for example, a class ContactBLL with GetContactByID, GetAllContacts, GetContactsByType) to allow access to model data and which can be accessed in controller actions. Thus, I do not need to enter the implementation code of these methods into the Actions Controller methods, and it can be reused using these methods in other Action Controllers. I will be grateful for your opinion, because it can help me answer the question that I asked myself for about a week, based on the answer to this question (about where to determine the DBC context and how to use it).
source
share