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