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

# MenuService

Thin facade over `IBolMenuApiClient`. It catches every exception from the menu call and returns null, so a menu outage turns into the error view instead of a crash.

## Purpose
- Fetch the user's menu from the BOL Menu API and convert failures to null ([BR-BOLMIDDLEWARE-016](../../business-rules.md#br-bolmiddleware-016-null-menu-error-view), [BR-BOLMIDDLEWARE-021](../../business-rules.md#br-bolmiddleware-021-silent-failure-degradation)).

## Context
- Namespace: `BolMiddleware.Services.Menu`
- Assembly/package: `BolMiddleware`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| Constructor | `MenuService(IBolMenuApiClient client)` | Receives the BOL Menu API client. |
| `GetMenu` | `BusinessOnlineMenu? GetMenu(string userId)` | Calls the API and returns null on any exception. |

## Behavioral notes
- The exception is not logged here; the cause is lost.

## Constraints and usage notes
- Callers must handle null.

## Sources
- src/BolMiddleware/Services/Menu/MenuService.cs
