public async Task <IActionResult> Close(int lockId) { await _locksService.CloseLock(lockId); await _locksService.LockClosed(lockId); await _hubContext.Clients.All.SetLockState(lockId, true); return(Ok()); }