This commit is contained in:
SpecialX
2025-06-27 19:03:10 +08:00
parent 14fbe6397a
commit a21ca80782
57 changed files with 3872 additions and 611 deletions

View File

@@ -0,0 +1,28 @@
@using Entities.Contracts
@using Entities.DTO
@using TechHelper.Client.Services
<h3>StudentsView</h3>
@foreach(var cs in ClassStudents)
{
<MudText> @cs.DisplayName </MudText>
}
@code {
[CascadingParameter]
private Task<AuthenticationState> authenticationStateTask { get; set; }
private List<StudentDto> ClassStudents { get; set; } = new List<StudentDto>();
[Inject]
public IClassServices ClassServices { get; set; }
protected override async Task OnInitializedAsync()
{
var result = await ClassServices.GetClassStudents();
ClassStudents = result.Result as List<StudentDto> ?? new List<StudentDto>();
StateHasChanged();
}
}