|
CrudControllerTEntitySaveOrUpdate Method |
Insert a entity to the server
Namespace: DrawerBackup.Native.Server.ControllersAssembly: DrawerBackup.Native (in DrawerBackup.Native.dll) Version: 0.0.1.1 (0.0.1.1)
Syntax[AuthorizeAttribute]
[HttpPostAttribute]
public virtual HttpResponseMessage SaveOrUpdate(
[FromBodyAttribute] TEntity entity
)
<AuthorizeAttribute>
<HttpPostAttribute>
Public Overridable Function SaveOrUpdate (
<FromBodyAttribute> entity As TEntity
) As HttpResponseMessage
public:
[AuthorizeAttribute]
[HttpPostAttribute]
virtual HttpResponseMessage^ SaveOrUpdate(
[FromBodyAttribute] TEntity entity
)
[<AuthorizeAttribute>]
[<HttpPostAttribute>]
abstract SaveOrUpdate :
[<FromBodyAttribute>] entity : 'TEntity -> HttpResponseMessage
[<AuthorizeAttribute>]
[<HttpPostAttribute>]
override SaveOrUpdate :
[<FromBodyAttribute>] entity : 'TEntity -> HttpResponseMessage
Parameters
- entity
- Type: TEntity
Return Value
Type:
HttpResponseMessage
See Also