ModelControllerTPost Method

Creates new record in associated table.

Definition

Namespace: Gemstone.Web.APIController
Assembly: Gemstone.Web (in Gemstone.Web.dll) Version: 1.0.169 -- Release Build+8faf1ecac713d04b6f66b1362cad3fcad71f0c24
[HttpPostAttribute]
[RouteAttribute("")]
public virtual Task<IActionResult> Post(
	[FromBodyAttribute] T record,
	CancellationToken cancellationToken
)

Parameters

record  T
The record to be created.
cancellationToken  CancellationToken
Propagates notification that operations should be canceled.

Return Value

TaskIActionResult
An IActionResult containing the new [!:T] or Exception.

Implements

IModelControllerTPost(T, CancellationToken)

See Also