cambios session por Local

This commit is contained in:
2025-07-28 13:22:10 +02:00
parent 35c4d23a43
commit 18ee50c3c1
12 changed files with 37 additions and 30 deletions

View File

@@ -5,7 +5,8 @@
@using bdHerramientaCACOA.HerramientaURBAN
@using bdHerramientaCACOA.db
@using Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage
@inject ProtectedSessionStorage ProtectedSessionStore
@inject ProtectedLocalStorage ProtectedLocalStore
@inject NavigationManager Navigation
@inject UserState UserState
@@ -80,7 +81,7 @@
private async void cargarListaSimulaciones()
{
var idUser = await ProtectedSessionStore.GetAsync<int>("idUsuario");
var idUser = await ProtectedLocalStore.GetAsync<int>("idUsuario");
listadoSimulaciones = bd.simulaciones.Include(x => x.idTipoSimulacionNavigation).Where(x => x.idCodigo == idUser.Value && (x.idTipoSimulacionNavigation.Codigo == "TIPOHERRAMIENTA.CASA" || x.idTipoSimulacionNavigation.Codigo == "TIPOHERRAMIENTA.URBAND") && x.idSimulacion != datosDespachoClonado.idSimulacion).ToList();