Last post Dec 22, 2020 01:02 AM by bruce (sqlwork.com)
Dec 20, 2020 04:03 AM|wavemaster|LINK
I have watched many different tutorials and I am now confused about the differences between Controller and Service.
For instance WeatherForecastController and WeatherForecastService.
Is that just a matter of terminology?
Dec 20, 2020 09:29 AM|yogyogi|LINK
Controller and service both are classes. But controller can be accessed by a URL. Service can be there is any type of project but controller can only be there in MVC architecture, it is the backbone of MVC.
Dec 22, 2020 01:02 AM|bruce (sqlwork.com)|LINK
Services are objects injected via the services api, typically thru the constructor. Commonly BI, logging and network apis. Blazor controllers are called by routing requests.