I need help regarding architecture in .NET MVC.

Size - Aug 2 - - Dev Community

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

. .
Terabox Video Player