private IEnumerable<IEnumerable<MenuItem>> GetSources() { foreach (var provider in _providers) { IEnumerable<MenuItem> items; NavigationBuilder builder = new NavigationBuilder(); provider.GetNavigation(builder); items = builder.Build(); yield return items; } }
public void GetNavigation(NavigationBuilder builder) { builder.Add("订单管理", "10", x => x.Action("Index", "Order")); }
public void GetNavigation(NavigationBuilder builder) { builder.Add("合同管理", "20", x => x.Action("Index", "Contract")); }