Created
July 29, 2021 10:45
-
-
Save gerhart92/5267332cc4299de71fe41c5dfa560c7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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