Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Controllers.ControllerImpl.GetObjectFromModelAsync Method

Used by ModuleEdit controller only - ModuleEdit edits a generic ModuleDefinition so we need to bind it to the correct type from the controller.

Class: YetaWF.Core.Controllers.ControllerImpl
Namespace: YetaWF.Core.Controllers
Assembly: YetaWF.Core

Syntax

protected Task<object> GetObjectFromModelAsync(
    Type objType,
    string modelName );

Parameters

objType

The module type (the derived type).

modelName

The model name (always "Module").

Return Value

The bound object of the specified type, or null if there are validation errors.

See Also YetaWF.Core.Controllers.ControllerImpl ClassYetaWF.Core Overview