WorkplacesControllerPostAddWorkplace - метод |
Добавляет одно или несколько рабочих мест.
Метод доступен только администраторам.
Пространство имён:
Tessa.Web.Controllers
Сборка:
Tessa.Web (в Tessa.Web.dll) Версия: 3.5.0.19
Синтаксис [HttpPostAttribute("AddWorkplace")]
[SessionMethodAttribute(UserAccessLevel.Administrator)]
public Task PostAddWorkplace(
[FromBodyAttribute] IChangeWorkplaceModelRequest request,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("AddWorkplace")>
<SessionMethodAttribute(UserAccessLevel.Administrator)>
Public Function PostAddWorkplace (
<FromBodyAttribute> request As IChangeWorkplaceModelRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task
public:
[HttpPostAttribute(L"AddWorkplace")]
[SessionMethodAttribute(UserAccessLevel::Administrator)]
Task^ PostAddWorkplace(
[FromBodyAttribute] IChangeWorkplaceModelRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("AddWorkplace")>]
[<SessionMethodAttribute(UserAccessLevel.Administrator)>]
member PostAddWorkplace :
[<FromBodyAttribute>] request : IChangeWorkplaceModelRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task
Параметры
- request
- Тип: Tessa.Views.WorkplacesIChangeWorkplaceModelRequest
Запрос на добавление рабочих мест. - cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
Объект, посредством которого можно отменить асинхронную задачу.
Возвращаемое значение
Тип:
TaskАсинхронная задача.
См. также