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

25 lines
779 B
C#

using System.Collections.Generic;
using System.Threading.Tasks;
using AntDesign.ProLayout;
using antblazorpro.Models;
using antblazorpro.Services;
using Microsoft.AspNetCore.Components;
namespace antblazorpro.Pages.Profile {
public partial class Advanced {
private readonly IList<TabPaneItem> _tabList = new List<TabPaneItem>
{
new TabPaneItem {Key = "detail", Tab = "Details"},
new TabPaneItem {Key = "rules", Tab = "Rules"}
};
private AdvancedProfileData _data = new AdvancedProfileData();
[Inject] protected IProfileService ProfileService { get; set; }
protected override async Task OnInitializedAsync() {
await base.OnInitializedAsync();
_data = await ProfileService.GetAdvancedAsync();
}
}
}