Currently im injecting my Unit of Work inside the controller.
I figured out that in most of the designs, controllers calls the service layer and service calls the repository/DAL layer.
Most of the times in the controller, I don't have/need any logic and just need to fetch from db and pass it to view.
I do this by calling the repository from the unit of work, is this a bad practice?
I basically have only a two layered architecture instead of a 3 tiers. Im kinda missing the service layer/application layer
Views(MVC) <- Controllers(MVC) -> UoW(DB) -> Repository(DB) -> EF(DB) -> SQL Server(DB)
For the interested i can send my git repo in private.