CardsControllerDeleteQuery - метод
Delete card with attributes specified in route and query.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpDeleteAttribute("{id:guid}")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<CardDeleteResponse>> DeleteQuery(
[FromRouteAttribute] Guid id,
[FromQueryAttribute] string? type = null,
CancellationToken cancellationToken = default
)
<HttpDeleteAttribute("{id:guid}")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function DeleteQuery (
<FromRouteAttribute> id As Guid,
<FromQueryAttribute> Optional type As String = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of CardDeleteResponse))
public:
[HttpDeleteAttribute(L"{id:guid}")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<CardDeleteResponse^>^>^ DeleteQuery(
[FromRouteAttribute] Guid id,
[FromQueryAttribute] String^ type = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpDeleteAttribute("{id:guid}")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member DeleteQuery :
[<FromRouteAttribute>] id : Guid *
[<FromQueryAttribute>] ?type : string *
?cancellationToken : CancellationToken
(* Defaults:
let _type = defaultArg type null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<CardDeleteResponse>>
- id Guid
- Card identifier to delete.
- type String (Optional)
- Type identifier or name to delete. Omit the type if its not virtual.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskActionResultCardDeleteResponseResponse to the request.