CardsControllerPostStore - метод
Сохраняет карточку
Card с заданными параметрами. Если у карточки указан режим сохранения
Insert, то карточка считается новой и создаётся, в противном случае изменяется существующая карточка.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 3.6.0.22
[HttpPostAttribute("store")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<CardStoreResponse>> PostStore(
[FromBodyAttribute] CardStoreRequest request,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("store")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostStore (
<FromBodyAttribute> request As CardStoreRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of CardStoreResponse))
public:
[HttpPostAttribute(L"store")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<CardStoreResponse^>^>^ PostStore(
[FromBodyAttribute] CardStoreRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("store")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostStore :
[<FromBodyAttribute>] request : CardStoreRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<CardStoreResponse>>
- request CardStoreRequest
- Запрос на сохранение карточки.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
TaskActionResultCardStoreResponseОтвет на запрос на сохранение карточки.