Signature changes of GetMenuForNode() & PerformGetMenuForNode()

This commit is contained in:
Elitsa Marinovska
2021-01-13 11:02:29 +01:00
parent 2c81d09d0e
commit 2204a57a8d
19 changed files with 56 additions and 41 deletions

View File

@@ -253,7 +253,7 @@ namespace Umbraco.Web.BackOffice.Trees
return parts.Length >= 2 && int.TryParse(parts[1], out id) ? id : 0;
}
protected abstract MenuItemCollection PerformGetMenuForNode(string id, FormCollection queryStrings);
protected abstract ActionResult<MenuItemCollection> PerformGetMenuForNode(string id, FormCollection queryStrings);
protected abstract UmbracoObjectTypes UmbracoObjectType { get; }
@@ -432,7 +432,7 @@ namespace Umbraco.Web.BackOffice.Trees
/// <param name="id"></param>
/// <param name="queryStrings"></param>
/// <returns></returns>
protected sealed override MenuItemCollection GetMenuForNode(string id, FormCollection queryStrings)
protected sealed override ActionResult<MenuItemCollection> GetMenuForNode(string id, FormCollection queryStrings)
{
if (RecycleBinId.ToInvariantString() == id)
{