diff --git a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/Index.razor b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/Index.razor index 933d662a15..46308cfa29 100644 --- a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/Index.razor +++ b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/Index.razor @@ -1,12 +1,28 @@ @page "/" @using Volo.Abp.Identity @inject IProfileAppService ProfileAppService +@inject IIdentityUserAppService UserAppService -

Remote Service Test

+

Profile Application Service Test

Current user name: @_userName

- + + +

User Application Service Test

+ + + +@if (_users != null) +{ + +

Total user count: @_totalUserCount

+} @code { @@ -18,4 +34,14 @@ _userName = (await ProfileAppService.GetAsync()).UserName; } -} \ No newline at end of file + + private long _totalUserCount = 0; + private IReadOnlyList _users; + + private async Task GetUsersAsync() + { + var result = await UserAppService.GetListAsync(new GetIdentityUsersInput()); + _totalUserCount = result.TotalCount; + _users = result.Items; + } +}