Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using Glass.Mapper.Sc.Web.Mvc;
using Sitecore.Mvc.Controllers;
namespace Test.Foundation.SitecoreExtensions.Controllers
public class MvcController : SitecoreController
public IMvcContext MvcContext { get; set; }
public MvcController()
: this(new MvcContext(new SitecoreService(Sitecore.Context.Database))) { }
public MvcController(IMvcContext mvcContext)
MvcContext = mvcContext;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment