Refactoring Bloated Controllers with [FromService] - ElegantCode

Instead of use the Service Locator pattern to tidy up your ASP.NET MVC controllers, consider using the [FromService] attribute to provide even greater cleanliness and separation of concerns to your classes.
December 11, 2022
441
360