This project is read-only.


From the package management console, run "Install-Package MvcSupplantCaching"


Attribute Usage

Place the [SupplantOutputCache] attribute on your controller actions, and use it the same way you would use the [OutputCache] attribute.
[SupplantOutputCache(CacheProfile = "HomeIndex")]
public ActionResult Index()

Supplanting Content

<div>The current time is @Html.SupplantContent(() => DateTime.UtcNow.ToString("G"))</div>

Performing an action

@Html.SupplantAction(() => myPost.TrackView())

Last edited Dec 17, 2014 at 9:52 PM by rmuzzey, version 2