I have a MVC controller action method which has a lot of functionality and that includes calling a private method. This private method calls webapi service returns response to controller action. I want to cache this output to minimize number of calls to Webapi.
I think, we don't have any attribute support (like OutputCache on action) on a normal methods of a controller. I can only think of using MemoryCache, but please share if any best way to implement Caching here.
MVC Controller Action -> private method -> Call to Webapi service