Method FirstOrDefaultMenu
FirstOrDefaultMenu(Func<IMenuBaseModel, bool>)
Returns the first menu base model that satisfies the specified condition.
public IMenuBaseModel FirstOrDefaultMenu(Func<IMenuBaseModel, bool> predicate)
Parameters
predicate
Func<IMenuBaseModel, bool>The condition to satisfy.
Returns
- IMenuBaseModel
The first menu base model that satisfies the condition, or null if no such element is found.