1- using System ;
2- using System . Collections . Generic ;
3- using System . Linq ;
4- using System . Threading . Tasks ;
51using Microsoft . AspNetCore . Components ;
6- using System . Net . Http ;
7- using System . Net . Http . Json ;
8- using Microsoft . AspNetCore . Components . Authorization ;
9- using Microsoft . AspNetCore . Components . Forms ;
10- using Microsoft . AspNetCore . Components . Routing ;
11- using Microsoft . AspNetCore . Components . Web ;
12- using Microsoft . AspNetCore . Components . Web . Virtualization ;
13- using Microsoft . AspNetCore . Components . WebAssembly . Http ;
14- using Microsoft . JSInterop ;
15- using NetEvent . Client ;
16- using NetEvent . Client . Shared ;
17- using MudBlazor ;
18- using NetEvent . Shared . Models ;
192using Microsoft . AspNetCore . Identity ;
3+ using NetEvent . Shared . Dto ;
204
215namespace NetEvent . Client . Pages . Administration
226{
@@ -29,17 +13,17 @@ public partial class Users
2913
3014 protected override async Task OnInitializedAsync ( )
3115 {
32- AllUsers = await Utils . Get < List < ApplicationUser > > ( HttpClient , "users" ) ;
16+ AllUsers = await Utils . Get < List < CurrentUser > > ( HttpClient , "users" ) ;
3317 AllRoles = await Utils . Get < List < IdentityRole > > ( HttpClient , "roles" ) ;
3418 }
3519
3620 #region Users
3721
38- public List < ApplicationUser > ? AllUsers { get ; private set ; }
22+ public List < CurrentUser > ? AllUsers { get ; private set ; }
3923 private string _usersSearchString ;
4024
4125 // quick filter - filter gobally across multiple columns with the same input
42- private Func < ApplicationUser , bool > _usersQuickFilter => x =>
26+ private Func < CurrentUser , bool > _usersQuickFilter => x =>
4327 {
4428 if ( string . IsNullOrWhiteSpace ( _usersSearchString ) )
4529 return true ;
@@ -60,7 +44,7 @@ protected override async Task OnInitializedAsync()
6044 } ;
6145
6246
63- void CommittedUserChanges ( ApplicationUser item )
47+ void CommittedUserChanges ( CurrentUser item )
6448 {
6549 _ = Utils . Put ( HttpClient , $ "users/{ item . Id } ", item ) ;
6650 }
0 commit comments