Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using System.Web.Mvc;
using Test.Foundation.SitecoreExtensions.Controllers;
namespace Test.Feature.Articles.Controllers
{
public class ArticleController : MvcController
{
public ActionResult Article()
{
var model = MvcContext.GetContextItem<Article>();
return View(model);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment