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