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"); } }