public async Task <IActionResult> SignOut() { string hubconnectionId = LogUser.ComunicationService.hubConnection.ConnectionId; await LogUser.ComunicationService.Disconnect(); LogUser.UsersConnected.IsDisable = true; bool result = await userConnectedDataStore.UpdateItemAsync(LogUser.UsersConnected); if (result) { return(RedirectToAction("Index", new { loginViewModel = new LoginViewModel() })); } else { return(RedirectToAction("HomeStore", "Store", new { StoreId = SelectedStore.CurrentStore.StoreId })); } }