From ea51d1ae8d41ac5b2f0e3a53c34cf2698c8e330f Mon Sep 17 00:00:00 2001 From: dncsvr Date: Mon, 18 Dec 2023 16:34:18 +0300 Subject: [PATCH] minor edits --- dependency-injection/DependencyInjection/Controller.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dependency-injection/DependencyInjection/Controller.cs b/dependency-injection/DependencyInjection/Controller.cs index cf8046b..12f17c7 100644 --- a/dependency-injection/DependencyInjection/Controller.cs +++ b/dependency-injection/DependencyInjection/Controller.cs @@ -7,10 +7,8 @@ public class Controller { readonly Singleton _singleton; - public Controller(Singleton singleton) - { + public Controller(Singleton singleton) => _singleton = singleton; - } [HttpPost] [Route("stuff")]