Share via


ODataController.Created<TEntity>(TEntity) Method

Definition

Creates an action result with the specified values that is a response to a POST operation with an entity to an entity set.

protected virtual Microsoft.AspNet.OData.Results.CreatedODataResult<TEntity> Created<TEntity> (TEntity entity);
override this.Created : 'Entity -> Microsoft.AspNet.OData.Results.CreatedODataResult<'Entity>
Protected Overridable Function Created(Of TEntity) (entity As TEntity) As CreatedODataResult(Of TEntity)

Type Parameters

TEntity

The created entity type.

Parameters

entity
TEntity

The created entity.

Returns

A CreatedODataResult<T> with the specified values.

Remarks

These function uses types that are AspNet-specific.

Applies to