demo/Pages/Profile/Basic/Basic.razor.cs
2024-06-21 16:48:24 +08:00

20 lines
538 B
C#

using System.Threading.Tasks;
using antblazorpro.Models;
using antblazorpro.Services;
using Microsoft.AspNetCore.Components;
namespace antblazorpro.Pages.Profile
{
public partial class Basic
{
private BasicProfileDataType _data = new BasicProfileDataType();
[Inject] protected IProfileService ProfileService { get; set; }
protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();
_data = await ProfileService.GetBasicAsync();
}
}
}