protected override async Task OnInitializedAsync()
 {
     if (!await ServerFacade.Authenticate())
     {
         NavigationManager.NavigateTo("");
     }
     Expenses = (await ServerFacade.RetrieveExpenses()).Expenses;
     FilterExpenses();
 }
Beispiel #2
0
        protected async override Task OnInitializedAsync()
        {
            if (!State.IsLoggedIn && !await ServerFacade.Authenticate())
            {
                NavigationManager.NavigateTo("");
            }
            await RetrieveFoodSchedule();

            State.Subscribe(this);
        }