示例#1
0
        public async Task <IActionResult> Close(int lockId)
        {
            await _locksService.CloseLock(lockId);

            await _locksService.LockClosed(lockId);

            await _hubContext.Clients.All.SetLockState(lockId, true);

            return(Ok());
        }