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