Browse Source

Cleanup the Index page.

pull/5399/head
Halil İbrahim Kalkan 6 years ago
parent
commit
a095d2fb08
  1. 13
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/Index.razor

13
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/Index.razor

@ -2,17 +2,10 @@
@using Volo.Abp.Identity
@inject IProfileAppService ProfileAppService
<h1>Hello, world!</h1>
<div class="alert alert-warning" role="alert">
Before authentication will function correctly, you must configure your provider details in <code>Program.cs</code>
</div>
Welcome to your new app.
<h2>Remote Service Test</h2>
<h1>Remote Service Test</h1>
<h4>Current user name: @_userName</h4>
<button class="btn btn-primary" @onclick="GetUserNameAsync">Click me (after login)</button>
@code
@ -21,6 +14,8 @@ Welcome to your new app.
private async Task GetUserNameAsync()
{
// It calls the remote service via ABP Dynamic C# Proxies!
_userName = (await ProfileAppService.GetAsync()).UserName;
}
}
Loading…
Cancel
Save