static void Main(string[] args) { var controller = new HelloController(); string result = controller.Index("Stephanie"); Console.WriteLine(result); }
private static void UseDependencyInjection() { IHelloService hello = new HelloService(); var greetingController = new HelloController(hello); string result = greetingController.Greeting("Tobi"); Console.WriteLine(result); }