diff --git a/MP.INVE/Components/CmpTop.razor b/MP.INVE/Components/CmpTop.razor index 37177405..5672c13e 100644 --- a/MP.INVE/Components/CmpTop.razor +++ b/MP.INVE/Components/CmpTop.razor @@ -7,10 +7,20 @@
- @userName @if (userName != "0") { - +
+
+ +
+ + @userName + +
+ } + else + { + }
diff --git a/MP.INVE/Components/CmpTop.razor.cs b/MP.INVE/Components/CmpTop.razor.cs index 70f510b7..65f635b7 100644 --- a/MP.INVE/Components/CmpTop.razor.cs +++ b/MP.INVE/Components/CmpTop.razor.cs @@ -3,6 +3,7 @@ using Blazored.LocalStorage; using Microsoft.AspNetCore.Components; using Microsoft.JSInterop; using MP.Data.DTO; +using MP.INVE.Data; namespace MP.INVE.Components { @@ -14,6 +15,7 @@ namespace MP.INVE.Components { await Task.Delay(1); await Task.Delay(1); + await MIDataService.FlushRedisCache(); // rimando a pagina corrente NavManager.NavigateTo(NavManager.Uri, true); } @@ -31,6 +33,8 @@ namespace MP.INVE.Components [Inject] protected IJSRuntime JSRuntime { get; set; } = null!; + [Inject] + protected MiDataService MIDataService{ get; set; } = null!; #endregion Protected Properties