logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class MenuSubmitOption

    Use case for submitting a menu option.

    Inheritance
    object
    MenuSubmitOption
    Implements
    ISyncUseCase<MenuSubmitOptionInput, bool>
    IUseCase
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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
    IMenuPresenter

    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.

    See Also
    MenuSubmitOptionInput

    Implements

    ISyncUseCase<TInput, TOutput>
    IUseCase

    See Also

    IMenuPresenter
    MenuSubmitOptionInput
    In this article
    © 2026 Serenity. All Rights Reserved