Class ModuleCreate
Module creation page.
public sealed class ModuleCreate : CreatePage<ResourceInfo, ModuleEdit>, IPage
- Inheritance
-
objectModuleCreate
- Implements
- Inherited Members
- Extension Methods
Constructors
ModuleCreate(IFormComponentMapper, IFormDataBinder, IPageLinkGenerator)
Initializes a new instance of the ModuleCreate class.
public ModuleCreate(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IPageLinkGenerator pageLinkGenerator)
Parameters
formComponentMapper
IFormComponentMapperformDataBinder
IFormDataBinderpageLinkGenerator
IPageLinkGenerator
Methods
ConfigurePage()
Set up page's configuration. Configures UI page.
public override Task ConfigurePage()
Returns
- Task
GetFormItems()
Prepares form items for editing object of the specified ObjectType.
protected override Task<ICollection<IFormItem>> GetFormItems()
Returns
- Task<ICollection<IFormItem>>
Returns the collection of form items.
GetSubmitSuccessResponse(ResourceInfo, ICollection<IFormItem>)
Response that has to be returned after successful form submission.
protected override Task<ICommandResponse> GetSubmitSuccessResponse(ResourceInfo savedInfoObject, ICollection<IFormItem> items)
Parameters
savedInfoObject
ResourceInfoObject info after persisting.
items
ICollection<IFormItem>Collection with updated form items.
Returns
- Task<ICommandResponse>