Skip to content

Instantly share code, notes, and snippets.

@gerhart92
Created July 29, 2021 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerhart92/0d2cca0f03c263b46f265a7f031e6328 to your computer and use it in GitHub Desktop.
Save gerhart92/0d2cca0f03c263b46f265a7f031e6328 to your computer and use it in GitHub Desktop.
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