Update vor Blazorise

This commit is contained in:
2021-08-17 21:40:36 +02:00
parent e16ec943e1
commit 1746401541
150 changed files with 26965 additions and 4583 deletions

View File

@@ -0,0 +1,33 @@
@page "/Teacher/Dashboard"
@inject Blazored.SessionStorage.ISessionStorageService sessionStorage
@inject NavigationManager NavManager
@inherits Admin.ListBase;
@using System.ComponentModel.DataAnnotations
@using Syncfusion.Blazor.Grids;
@using Syncfusion.Blazor.Buttons;
@using Syncfusion.Blazor.Spinner;
@using Syncfusion.Blazor.Navigations;
@using Syncfusion.Blazor.Popups;
@using BlazorApp.Helper
@using BWPMModels;
@code {
string userid = "";
private Lehrer _lehrer { get; set; } = new BWPMModels.Lehrer();
public List<BWPMModels.Lehrer> Lehrerdaten { get; set; }
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender != true) { return; };
var authState = await authenticationStateTask;
userid = authState.User.Claims.FirstOrDefault().Value;
var user = authState.User;
await sessionStorage.SetItemAsync("UserID", userid);
Lehrerdaten = BlazorApp.Controller.LehrerController.GetByUserID(userid);
_lehrer = Lehrerdaten.First<BWPMModels.Lehrer>();
await sessionStorage.SetItemAsync("LehrerID", _lehrer.ID.ToString());
}
}