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
ElementServiceclassGenerationService
ClassGenerationServicescriptsService
ScriptsServiceentityRepository
IEntityRepositoryuploadAreaFactory
IComponentFactory<JJUploadArea>stringLocalizer
IStringLocalizer<MasterDataResources>
Methods
Add()
public ViewResult Add()
Returns
Add(ElementBean)
[HttpPost]
public Task<IActionResult> Add(ElementBean model)
Parameters
model
ElementBean
Returns
ClassSourceCode(string)
public ValueTask<PartialViewResult> ClassSourceCode(string elementName)
Parameters
elementName
string
Returns
Delete()
public Task<IActionResult> Delete()
Returns
Duplicate(DuplicateElementViewModel)
[HttpPost]
public Task<IActionResult> Duplicate(DuplicateElementViewModel model)
Parameters
Returns
Duplicate(string?)
public ViewResult Duplicate(string? elementName = null)
Parameters
elementName
string
Returns
Export()
public Task<FileResult> Export()
Returns
Import()
public Task<IActionResult> Import()
Returns
Index()
public Task<IActionResult> Index()
Returns
Scripts(string)
public Task<PartialViewResult> Scripts(string elementName)
Parameters
elementName
string
Returns
Scripts(string, string)
[HttpPost]
public Task<IActionResult> Scripts(string elementName, string scriptOption)