Class AllDocumentsController.DocumentNewItemHelper
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Controllers
Assembly: LemonEdge.ClientEntities.dll
Syntax
public class AllDocumentsController.DocumentNewItemHelper : NewItemDescriptor<IDocument>, INewItemHelper<IDocument>
Constructors
DocumentNewItemHelper(BaseGridController<IDocument>)
Declaration
public DocumentNewItemHelper(BaseGridController<IDocument> controller)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseGridController<IDocument> | controller |
Methods
CreateNewItem(UserInfo, IReadOnlyCache, IEntityUpdater)
Creates a single new entity of type IDocument and inserts it into the entity collection view (typically a grid)
Declaration
public override Task<IEnumerable<IDocument>> CreateNewItem(UserInfo userInfo, IReadOnlyCache cache, IEntityUpdater updater)
Parameters
| Type | Name | Description |
|---|---|---|
| UserInfo | userInfo | The current logged in user |
| IReadOnlyCache | cache | A local cache |
| IEntityUpdater | updater | The context the items are being created in and can be added to |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<IDocument>> | A list of the newly created items. |
Overrides
LemonEdge.Client.Core.Commands.ViewCommands.NewItemDescriptor<LemonEdge.API.Entities.Workflow.IDocument>.CreateNewItem(LemonEdge.API.Core.Context.UserInfo, LemonEdge.API.Core.Data.IReadOnlyCache, LemonEdge.API.Core.Data.IEntityUpdater)