Class MenuSelectOption
Use case for selecting a menu option.
Inherited Members
Namespace: Serenity.Menu.Application.UseCases
Assembly: Serenity.Menu.Application.dll
Syntax
public class MenuSelectOption : ISyncUseCase<MenuSelectOptionInput>, IUseCase
Remarks
This class handles the logic for selecting a menu option by interacting with the menu presenter.
Constructors
MenuSelectOption(IMenuPresenter)
Initializes a new instance of the MenuSelectOption class.
Declaration
public MenuSelectOption(IMenuPresenter presenter)
Parameters
| Type | Name | Description |
|---|---|---|
| IMenuPresenter | presenter | The menu presenter to be used for selecting the menu option. |
See Also
Methods
Execute(MenuSelectOptionInput)
Executes the menu select option operation using the provided input data.
Declaration
public void Execute(MenuSelectOptionInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| MenuSelectOptionInput | input | The input data containing the IDs and index for the menu option. |
Remarks
This method interacts with the menu presenter to perform the selection operation.