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.171 -- Release Build+f97a6efcf348dbb2ce14e0dc455918e455771b06
[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