Skip to content

BolSideMenuViewComponent

View component that renders the left-hand BOL menu, including the favorites list, from a loaded BusinessOnlineMenu.

Purpose

  • Wrap the menu and current page in a BolMenuViewModel for the BolSideMenu view.

Context

  • Namespace: BolMiddleware.Components
  • Assembly/package: BolMiddleware

Public members

Member Signature Purpose
InvokeAsync Task<IViewComponentResult> InvokeAsync(BusinessOnlineMenu menu, string currentPage) Builds the view model and returns the default side menu view.

Behavioral notes

  • Declared async but contains no await.

Constraints and usage notes

Sources

  • src/BolMiddleware/ViewComponents/BolSideMenuViewComponent.cs