ODataController.Created<TEntity>(TEntity) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
CreatedODataResult<TEntity>
A CreatedODataResult<T> with the specified values.
Remarks
These function uses types that are AspNet-specific.