Example #1
0
        public async Task <IActionResult> CloseWorker(Guid workerId)
        {
            try
            {
                await _workerService.CloseWorker(workerId);

                return(Ok());
            }
            catch (Exception e)
            {
                await Task.Delay(ErrorTimeoutMilliseconds);

                return(StatusCode((int)HttpStatusCode.InternalServerError, e.Message));
            }
        }