Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
georgechang committed Jan 29, 2017
2 parents 0b0b679 + 5dace5a commit 19a12bb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Ignition.Foundation.Core/Mvc/IgnitionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ namespace Ignition.Foundation.Core.Mvc
public abstract class IgnitionController : GlassController
{
public IgnitionControllerContext IgnitionControllerContext => new IgnitionControllerContextFactory().GetInstance(ControllerContext, SitecoreContext);
protected ViewResult View<TViewModel>(Action<TViewModel> factory)
protected ViewResult View<TViewModel>()
where TViewModel : IgnitionViewModel, new()
{
var datasourceItem = RouteData.Values.ContainsKey("scIsFallThrough") ? GetLayoutItem<TViewModel>(false, true) : new TViewModel();
datasourceItem.ContextPage = GetContextItem<TViewModel>(true, true);
return View(datasourceItem);
}
protected ViewResult View<TViewModel>(Action<TViewModel> factory)
where TViewModel : IgnitionViewModel, new()
{
var datasourceItem = RouteData.Values.ContainsKey("scIsFallThrough") ? GetLayoutItem<TViewModel>(false, true) : new TViewModel();
Expand Down

0 comments on commit 19a12bb

Please sign in to comment.