2
I am making a program in Asp net web apllication, but when I try to communicate the controller with the service the constructor this null saind, the dependencies are already configured in the project.
public HomeController(){}
public readonly OficinaService _oficinaService;
public HomeController(OficinaService oficinaService)
{
this._oficinaService = oficinaService;
}
follows the project on github https://github.com/REIFERREIRA/ProjHi
Just as an observation, I saw that your service has a constructor receiving the controller as parameter, and the controller receives the service as parameter in your constructor. I believe this redundancy is not correct. Also I did not see (I may not have noticed) any dependency injection configuration in the project...
– GustavoAdolfo