ReadOnlyModelControllerTGet(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.170 -- Release Build+b32d16e0cd614373e36528ea9dff7924975c7f87
[HttpGetAttribute]
[RouteAttribute("{page:min(0)}/{sort}/{ascending:bool}")]
public virtual Task<IActionResult> Get(
	string sort,
	bool ascending,
	int page,
	CancellationToken cancellationToken
)

Parameters

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, Boolean, Int32, CancellationToken)

See Also