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 _tabList = new List { 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(); } } }