✅ Understanding how to create a controller in ASP.NET.
I am trying to build my ASP.NET controller. I believe that its job is to take the data from the database and package it up and than make it available to the view. After reviewing the tutorial yesterday I discovered that using um dependency injection, I can drop objects into the controller and than it will return that object to the corresponding view. I need to package up all of the questions, answers, topics, and categories. I than need to allow the user to
click on the different categories those related categories questions and answers will appear on the webpage.
I have never built a controller before.
Topic.cs
2 Replies
!close
Closed!