From f51c2623c8ed2761aa3c2b44cf110b8f5e8e2ebb Mon Sep 17 00:00:00 2001 From: Damillora Date: Wed, 24 Mar 2021 17:28:45 +0700 Subject: [PATCH] AddCartService --- TestAppRuna/API/CartController.cs | 4 ++-- TestAppRuna/Startup.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TestAppRuna/API/CartController.cs b/TestAppRuna/API/CartController.cs index f6f8376..fe6e22b 100644 --- a/TestAppRuna/API/CartController.cs +++ b/TestAppRuna/API/CartController.cs @@ -15,9 +15,9 @@ namespace TestAppRuna.API [ApiController] public class CartController : ControllerBase { - public CartService CartSvc { get; } + public ICartService CartSvc { get; } - public CartController(CartService cartSvc) + public CartController(ICartService cartSvc) { this.CartSvc = cartSvc; } diff --git a/TestAppRuna/Startup.cs b/TestAppRuna/Startup.cs index 40f72c5..e85f3ed 100644 --- a/TestAppRuna/Startup.cs +++ b/TestAppRuna/Startup.cs @@ -35,7 +35,7 @@ namespace TestAppRuna services.AddSingleton(); services.AddScoped(); - + services.AddScoped(); services.Configure(Configuration); services.AddScoped(di => di.GetRequiredService>().CurrentValue);