I need help regarding architecture in .NET MVC.

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 contro…


This content originally appeared on DEV Community and was authored by Size

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


This content originally appeared on DEV Community and was authored by Size


Print Share Comment Cite Upload Translate Updates
APA

Size | Sciencx (2024-08-02T17:59:23+00:00) I need help regarding architecture in .NET MVC.. Retrieved from https://www.scien.cx/2024/08/02/i-need-help-regarding-architecture-in-net-mvc/

MLA
" » I need help regarding architecture in .NET MVC.." Size | Sciencx - Friday August 2, 2024, https://www.scien.cx/2024/08/02/i-need-help-regarding-architecture-in-net-mvc/
HARVARD
Size | Sciencx Friday August 2, 2024 » I need help regarding architecture in .NET MVC.., viewed ,<https://www.scien.cx/2024/08/02/i-need-help-regarding-architecture-in-net-mvc/>
VANCOUVER
Size | Sciencx - » I need help regarding architecture in .NET MVC.. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/02/i-need-help-regarding-architecture-in-net-mvc/
CHICAGO
" » I need help regarding architecture in .NET MVC.." Size | Sciencx - Accessed . https://www.scien.cx/2024/08/02/i-need-help-regarding-architecture-in-net-mvc/
IEEE
" » I need help regarding architecture in .NET MVC.." Size | Sciencx [Online]. Available: https://www.scien.cx/2024/08/02/i-need-help-regarding-architecture-in-net-mvc/. [Accessed: ]
rf:citation
» I need help regarding architecture in .NET MVC. | Size | Sciencx | https://www.scien.cx/2024/08/02/i-need-help-regarding-architecture-in-net-mvc/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.