SchemeControllerDeleteProcedure - метод
Delete procedure. Returns true if procedure has existed and was deleted.
Method is available for administrators only.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpDeleteAttribute("procedures/{id:guid}")]
[ProducesResponseTypeAttribute(200)]
public ValueTask<ActionResult<bool>> DeleteProcedure(
[FromRouteAttribute] Guid id,
CancellationToken cancellationToken = default
)
<HttpDeleteAttribute("procedures/{id:guid}")>
<ProducesResponseTypeAttribute(200)>
Public Function DeleteProcedure (
<FromRouteAttribute> id As Guid,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of ActionResult(Of Boolean))
public:
[HttpDeleteAttribute(L"procedures/{id:guid}")]
[ProducesResponseTypeAttribute(200)]
ValueTask<ActionResult<bool>^> DeleteProcedure(
[FromRouteAttribute] Guid id,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpDeleteAttribute("procedures/{id:guid}")>]
[<ProducesResponseTypeAttribute(200)>]
member DeleteProcedure :
[<FromRouteAttribute>] id : Guid *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<ActionResult<bool>>
- id Guid
- Identifier of procedure to delete.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
ValueTaskActionResultBooleantrue if procedure has existed and was deleted;
false otherwise.