.Net
[FromServices] used in method, which is not an action.
Can I use [FromServices] on a method’s parameter, when method is not an action, but Extension of the Controller? No, you can’t. Extension methods are syntax sugar on static functions, and will not be discovered Read more…