Table of Contents

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 RelationshipsService
stringLocalizer IStringLocalizer<MasterDataResources>

Methods

CreateRelationship(RelationshipsElementDetailsViewModel)

[HttpPost]
public Task<ActionResult> CreateRelationship(RelationshipsElementDetailsViewModel model)

Parameters

model RelationshipsElementDetailsViewModel

Returns

Task<ActionResult>

Delete(string, int)

[HttpPost]
public Task<ActionResult> Delete(string elementName, int id)

Parameters

elementName string
id int

Returns

Task<ActionResult>

DeleteRelationshipColumn(RelationshipsElementDetailsViewModel, int)

[HttpPost]
public Task<ActionResult> DeleteRelationshipColumn(RelationshipsElementDetailsViewModel model, int columnIndex)

Parameters

model RelationshipsElementDetailsViewModel
columnIndex int

Returns

Task<ActionResult>

ElementDetails(RelationshipsElementDetailsViewModel)

[HttpPost]
public Task<ActionResult> ElementDetails(RelationshipsElementDetailsViewModel model)

Parameters

model RelationshipsElementDetailsViewModel

Returns

Task<ActionResult>

ElementDetails(string, int?)

public Task<ActionResult> ElementDetails(string elementName, int? id)

Parameters

elementName string
id int?

Returns

Task<ActionResult>

GetPrimaryKeysSelectList(string)

public Task<List<SelectListItem>> GetPrimaryKeysSelectList(string elementName)

Parameters

elementName string

Returns

Task<List<SelectListItem>>

Index(string)

public Task<ActionResult> Index(string elementName)

Parameters

elementName string

Returns

Task<ActionResult>

LayoutDetails(RelationshipsLayoutDetailsViewModel)

[HttpPost]
public IActionResult LayoutDetails(RelationshipsLayoutDetailsViewModel model)

Parameters

model RelationshipsLayoutDetailsViewModel

Returns

IActionResult

LayoutDetails(string, int)

[HttpGet]
public Task<IActionResult> LayoutDetails(string elementName, int id)

Parameters

elementName string
id int

Returns

Task<IActionResult>

SaveRelationshipElement(RelationshipsElementDetailsViewModel)

[HttpPost]
public Task<ActionResult> SaveRelationshipElement(RelationshipsElementDetailsViewModel model)

Parameters

model RelationshipsElementDetailsViewModel

Returns

Task<ActionResult>

SaveRelationshipLayout(RelationshipsLayoutDetailsViewModel, FormElementPanel)

public Task<IActionResult> SaveRelationshipLayout(RelationshipsLayoutDetailsViewModel model, FormElementPanel panel)

Parameters

model RelationshipsLayoutDetailsViewModel
panel FormElementPanel

Returns

Task<IActionResult>

Sort(string, string[])

[HttpPost]
public Task<ActionResult> Sort(string elementName, string[] relationships)

Parameters

elementName string
relationships string[]

Returns

Task<ActionResult>