public void MyUsefulMethod() { //Some stuff _dependency.DoThing(); //Some more stuff }
public void OnActionExecuting(ActionExecutingContext context) { _dependency.DoThing(); }