Table of Contents

Class ElementController

Namespace
JJMasterData.Web.Areas.DataDictionary.Controllers
Assembly
JJMasterData.Web.dll
public class ElementController : DataDictionaryController, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable
Inheritance
ElementController
Implements
Inherited Members

Constructors

ElementController(ElementService, ClassGenerationService, ScriptsService, IEntityRepository, IComponentFactory<JJUploadArea>, IStringLocalizer<MasterDataResources>)

public ElementController(ElementService elementService, ClassGenerationService classGenerationService, ScriptsService scriptsService, IEntityRepository entityRepository, IComponentFactory<JJUploadArea> uploadAreaFactory, IStringLocalizer<MasterDataResources> stringLocalizer)

Parameters

elementService ElementService
classGenerationService ClassGenerationService
scriptsService ScriptsService
entityRepository IEntityRepository
uploadAreaFactory IComponentFactory<JJUploadArea>
stringLocalizer IStringLocalizer<MasterDataResources>

Methods

Add()

public ViewResult Add()

Returns

ViewResult

Add(ElementBean)

[HttpPost]
public Task<IActionResult> Add(ElementBean model)

Parameters

model ElementBean

Returns

Task<IActionResult>

ClassSourceCode(string)

public ValueTask<PartialViewResult> ClassSourceCode(string elementName)

Parameters

elementName string

Returns

ValueTask<PartialViewResult>

Delete()

public Task<IActionResult> Delete()

Returns

Task<IActionResult>

Duplicate(DuplicateElementViewModel)

[HttpPost]
public Task<IActionResult> Duplicate(DuplicateElementViewModel model)

Parameters

model DuplicateElementViewModel

Returns

Task<IActionResult>

Duplicate(string?)

public ViewResult Duplicate(string? elementName = null)

Parameters

elementName string

Returns

ViewResult

Export()

public Task<FileResult> Export()

Returns

Task<FileResult>

Import()

public Task<IActionResult> Import()

Returns

Task<IActionResult>

Index()

public Task<IActionResult> Index()

Returns

Task<IActionResult>

Scripts(string)

public Task<PartialViewResult> Scripts(string elementName)

Parameters

elementName string

Returns

Task<PartialViewResult>

Scripts(string, string)

[HttpPost]
public Task<IActionResult> Scripts(string elementName, string scriptOption)

Parameters

elementName string
scriptOption string

Returns

Task<IActionResult>