diff --git a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/Counter.razor b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/Counter.razor deleted file mode 100644 index 8641f78199..0000000000 --- a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/Counter.razor +++ /dev/null @@ -1,16 +0,0 @@ -@page "/counter" - -
Current count: @currentCount
- - - -@code { - private int currentCount = 0; - - private void IncrementCount() - { - currentCount++; - } -} 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 2a4ab56ef2..50a83512f5 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,4 +1,5 @@ @page "/" + @using Volo.Abp.Identity @inject IProfileAppService ProfileAppService diff --git a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/RoleManagement.razor b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/RoleManagement.razor new file mode 100644 index 0000000000..7b83c21d5d --- /dev/null +++ b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/RoleManagement.razor @@ -0,0 +1,33 @@ +@page "/role-management" +@attribute [Authorize] +@using Volo.Abp.Identity +@using Microsoft.AspNetCore.Authorization +@using Volo.Abp.Application.Dtos +@inject IIdentityRoleAppService RoleAppService + +Total role count: @_totalRoleCount
+} + +@code { + private long _totalRoleCount = 0; + private IReadOnlyList