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