ReadOnlyModelControllerTSearch Method

Gets all records from associated table matching the provided search criteria.

Definition

Namespace: Gemstone.Web.APIController
Assembly: Gemstone.Web (in Gemstone.Web.dll) Version: 1.0.170 -- Release Build+b32d16e0cd614373e36528ea9dff7924975c7f87
[HttpPostAttribute]
[RouteAttribute("Search/{page:min(0)}/{parentID?}")]
[ResourceAccessAttribute(ResourceAccessType.Read)]
public virtual Task<IActionResult> Search(
	[FromBodyAttribute] SearchPost<T> postData,
	int page,
	string? parentID,
	CancellationToken cancellationToken
)

Parameters

postData  SearchPostT
Search criteria.
page  Int32
the 0 based page number to be returned.
parentID  String
Parent ID to be used if table has set parent keys.
cancellationToken  CancellationToken
Propagates notification that operations should be canceled.

Return Value

TaskIActionResult
An IActionResult containing T or Exception.

Implements

IReadOnlyModelControllerTSearch(SearchPostT, Int32, String, CancellationToken)

See Also