Files
mapo-core/MP.INVENTORY/Pages/Utils.razor.cs
T
2022-11-10 11:39:56 +01:00

30 lines
672 B
C#

using Microsoft.AspNetCore.Components;
using MP.INVENTORY.Data;
namespace MP.INVENTORY.Pages
{
public partial class Utils
{
#region Public Methods
public async Task flushCache()
{
await Task.Delay(1);
await MDService.FlushRedisCache();
// rimando a home
NavManager.NavigateTo("", true);
}
[Inject]
private NavigationManager NavManager { get; set; } = null!;
#endregion Public Methods
#region Protected Properties
[Inject]
protected MpDataService MDService { get; set; } = null!;
#endregion Protected Properties
}
}