ReadOnlyModelControllerTGet(String, String, Boolean, Int32, CancellationToken) Method

Gets all records from associated table sorted by the provided field.

Definition

Namespace: Gemstone.Web.APIController
Assembly: Gemstone.Web (in Gemstone.Web.dll) Version: 1.0.169 -- Release Build+8faf1ecac713d04b6f66b1362cad3fcad71f0c24
[HttpGetAttribute]
[RouteAttribute("{page:min(0)}/{parentID}/{sort}/{ascending:bool}")]
public virtual Task<IActionResult> Get(
	string parentID,
	string sort,
	bool ascending,
	int page,
	CancellationToken cancellationToken
)

Parameters

parentID  String
Parent ID to be used if table has set parent keys.
sort  String
Field to be used for sorting.
ascending  Boolean
Flag when true will sort ascending; otherwise, descending.
page  Int32
The 0 based page number to be returned.
cancellationToken  CancellationToken
Propagates notification that operations should be canceled.

Return Value

TaskIActionResult
An IActionResult containing T or Exception.

Implements

IReadOnlyModelControllerTGet(String, String, Boolean, Int32, CancellationToken)

See Also