Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit 3dec042

Browse files
Updated CurrentPartialView method to return PartialViewResult for consistancy
1 parent 84d389f commit 3dec042

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Src/Our.Umbraco.DocTypeGridEditor/Web/Controllers/DocTypeGridEditorSurfaceController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public bool IsPreview
3131
get { return Request.QueryString["dtgePreview"] == "1"; }
3232
}
3333

34-
protected ActionResult CurrentPartialView(object model = null)
34+
protected PartialViewResult CurrentPartialView(object model = null)
3535
{
3636
if (model == null)
3737
model = Model;
@@ -52,7 +52,7 @@ protected ActionResult CurrentPartialView(object model = null)
5252
return base.PartialView(viewPath, model);
5353
}
5454

55-
return HttpNotFound();
55+
return base.PartialView(viewName, model);
5656
}
5757

5858
protected new PartialViewResult PartialView(string viewName)

0 commit comments

Comments
 (0)