Using lambada expression in .Where() statement not working
I'm trying to create a function that gets all the current nodes siblings however im gettign the error "delegate 'System.Func<umbraco.MacroEngines.DynamicNode,int,bool>' does not take 1 arguments" when using the below code:
public List GetNodeSiblings(DynamicNode current)
{
String nodeTypeAlias = current.NodeTypeAlias;
return current.Parent.Descendants(nodeTypeAlias).Where(x => x.GetProperty("umbracoNaviHide").Value != "1">)
.OrderByDescending(x => x.GetProperty("updateDate").Value).ToList();
}
Any help would be appreciated and thanks in advance!
Using lambada expression in .Where() statement not working
I'm trying to create a function that gets all the current nodes siblings however im gettign the error "delegate 'System.Func<umbraco.MacroEngines.DynamicNode,int,bool>' does not take 1 arguments" when using the below code:
Any help would be appreciated and thanks in advance!
is working on a reply...