Why Put Business Logic in a Service Instead of Stuffing Everything Into an ASP.NET Core Controller?

When building an MVC application, it is very easy to keep adding code to a controller. At first, the action looks harmless: public IActionResult Create() { return View(); } Then…

Continue ReadingWhy Put Business Logic in a Service Instead of Stuffing Everything Into an ASP.NET Core Controller?

Understanding Dependency Injection in ASP.NET Core Without the Jargon

Dependency Injection was one of those programming terms that sounded much more intimidating than the idea actually was. The name doesn't help. Dependency. Injection. It sounds like either an advanced…

Continue ReadingUnderstanding Dependency Injection in ASP.NET Core Without the Jargon