Size
Posted on August 2, 2024
Project: I’m trying to learn .NET MVC version 8 and have already created models and migrated the data to MSSQL. Now I’m working on creating controllers and services.
Goal: I want to build it using Onion Architecture.
Problem: When I create the controller, I need to return the view. How can I do this while designing the controller according to Onion Architecture? As far as I know, CRUD operations are implemented in the controller. I’m not sure where to place the return View() in this architecture.
Suggestions: If you believe that Onion Architecture is not suitable, I am also open to other architectural approaches.
Thx
💖 💪 🙅 🚩
Size
Posted on August 2, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.