Skip to content
This repository was archived by the owner on Apr 6, 2022. It is now read-only.

Commit 4e5a15d

Browse files
committed
rename BlockContext
1 parent bfd263e commit 4e5a15d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Our.Umbraco.BlockListMvc/Controllers/BlockListMvcSurfaceController.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public TModel Model
2222
get { return (TModel)ControllerContext.RouteData.Values["blockListItem"]; }
2323
}
2424

25-
public BlockListItemContext BlockListItemContext
25+
public BlockListItemContext BlockContext
2626
{
2727
get { return (BlockListItemContext)ControllerContext.RouteData.Values["blockListItemContext"]; }
2828
}
@@ -37,9 +37,9 @@ public string ContentTypeAlias
3737
get { return ControllerContext.RouteData.Values["blockListItemContentTypeAlias"] as string ?? string.Empty; }
3838
}
3939

40-
protected void SetBlockListItemContext()
40+
protected void SetBlockContext()
4141
{
42-
ViewData[Constants.BlockListItemContextViewDataKey] = BlockListItemContext;
42+
ViewData[Constants.BlockListItemContextViewDataKey] = BlockContext;
4343
}
4444

4545
protected PartialViewResult CurrentPartialView(object model = null)
@@ -59,7 +59,7 @@ protected PartialViewResult CurrentPartialView(object model = null)
5959

6060
protected override PartialViewResult PartialView(string viewName, object model)
6161
{
62-
SetBlockListItemContext();
62+
SetBlockContext();
6363

6464
if (string.IsNullOrWhiteSpace(ViewPath) == false)
6565
{

0 commit comments

Comments
 (0)