---
title: BolSideMenuViewComponent
summary: API reference for BolSideMenuViewComponent.
status: draft
owner: SAIF IT Core Services
last_reviewed: 2026-10-12
library: BolMiddleware
reference_type: package
---

# 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
- The menu must be non-null; layouts show the error view otherwise ([BR-BOLMIDDLEWARE-016](../../business-rules.md#br-bolmiddleware-016-null-menu-error-view)).

## Sources
- src/BolMiddleware/ViewComponents/BolSideMenuViewComponent.cs
