public async Task <IActionResult> Open(int lockId) { await _locksService.OpenLock(lockId); await _locksService.LockOpened(lockId); await _hubContext.Clients.All.SetLockState(lockId, false); return(Ok()); }