Class RelationshipsController
- Namespace
- JJMasterData.Web.Areas.DataDictionary.Controllers
- Assembly
- JJMasterData.Web.dll
public class RelationshipsController : DataDictionaryController, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable
- Inheritance
-
RelationshipsController
- Implements
- Inherited Members
Constructors
RelationshipsController(RelationshipsService, IStringLocalizer<MasterDataResources>)
public RelationshipsController(RelationshipsService relationshipsService, IStringLocalizer<MasterDataResources> stringLocalizer)
Parameters
relationshipsService
RelationshipsServicestringLocalizer
IStringLocalizer<MasterDataResources>
Methods
CreateRelationship(RelationshipsElementDetailsViewModel)
[HttpPost]
public Task<ActionResult> CreateRelationship(RelationshipsElementDetailsViewModel model)
Parameters
Returns
Delete(string, int)
[HttpPost]
public Task<ActionResult> Delete(string elementName, int id)
Parameters
Returns
DeleteRelationshipColumn(RelationshipsElementDetailsViewModel, int)
[HttpPost]
public Task<ActionResult> DeleteRelationshipColumn(RelationshipsElementDetailsViewModel model, int columnIndex)
Parameters
model
RelationshipsElementDetailsViewModelcolumnIndex
int
Returns
ElementDetails(RelationshipsElementDetailsViewModel)
[HttpPost]
public Task<ActionResult> ElementDetails(RelationshipsElementDetailsViewModel model)
Parameters
Returns
ElementDetails(string, int?)
public Task<ActionResult> ElementDetails(string elementName, int? id)
Parameters
Returns
GetPrimaryKeysSelectList(string)
public Task<List<SelectListItem>> GetPrimaryKeysSelectList(string elementName)
Parameters
elementName
string
Returns
Index(string)
public Task<ActionResult> Index(string elementName)
Parameters
elementName
string
Returns
LayoutDetails(RelationshipsLayoutDetailsViewModel)
[HttpPost]
public IActionResult LayoutDetails(RelationshipsLayoutDetailsViewModel model)
Parameters
Returns
LayoutDetails(string, int)
[HttpGet]
public Task<IActionResult> LayoutDetails(string elementName, int id)
Parameters
Returns
SaveRelationshipElement(RelationshipsElementDetailsViewModel)
[HttpPost]
public Task<ActionResult> SaveRelationshipElement(RelationshipsElementDetailsViewModel model)
Parameters
Returns
SaveRelationshipLayout(RelationshipsLayoutDetailsViewModel, FormElementPanel)
public Task<IActionResult> SaveRelationshipLayout(RelationshipsLayoutDetailsViewModel model, FormElementPanel panel)
Parameters
model
RelationshipsLayoutDetailsViewModelpanel
FormElementPanel
Returns
Sort(string, string[])
[HttpPost]
public Task<ActionResult> Sort(string elementName, string[] relationships)