Skip to main content

All Questions

Tagged with
-1 votes
1 answer
2k views

How are parameters values passed into a MVC controller constructor?

For this MS sample code, I have checked Program.cs, Startup.cs, and other config files, don't see how the two parameters sqlQueryService and sqlCommandService are populated. Appreciate if someone can ...
Jeb50's user avatar
  • 101
3 votes
2 answers
28k views

How do constructor parameters of a MVC Controller get set?

How does construction work with dependency injection? With the following code: public class AdvancedSearchController : Controller { private EmployeeController _employeeController; public ...
Rodney Hickman's user avatar