From 7959fd75280b8a882e6a6cb31ba6f6f7413e4429 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Thu, 12 Oct 2023 16:52:35 -1000 Subject: [PATCH] fix snip --- .../minimal-apis/samples/KeyServiceController/Program.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/fundamentals/minimal-apis/samples/KeyServiceController/Program.cs b/fundamentals/minimal-apis/samples/KeyServiceController/Program.cs index 3157a40..10d2e51 100644 --- a/fundamentals/minimal-apis/samples/KeyServiceController/Program.cs +++ b/fundamentals/minimal-apis/samples/KeyServiceController/Program.cs @@ -30,20 +30,15 @@ public class SmallCache : ICache [Route("/cache")] public class CustomServicesApiController : Controller { - public ActionResult GetOk(ICache cache) - { - return cache.Get("data-mvc"); - } - [HttpGet("big")] public ActionResult GetBigCache([FromKeyedServices("big")] ICache cache) { - return GetOk(cache); + return cache.Get("data-mvc"); } [HttpGet("small")] public ActionResult GetSmallCache([FromKeyedServices("small")] ICache cache) { - return GetOk(cache); + return cache.Get("data-mvc"); } }