@page "/objects/accounts" @using Hcs.WebApp.Services @using Microsoft.AspNetCore.Authorization @using System.Security.Claims @inherits DataPageBase @attribute [Authorize] @inject AccountService AccountService Лицевые счета @code { protected override Campaign.CampaignType? SyncCampaignType => Campaign.CampaignType.ExportSupplyContracts_15_7_0_1; protected override Campaign.CampaignType? ParseCampaignType => null; protected override bool HasPermission(ClaimsPrincipal user) { return user.IsOperatorOrHigher(); } protected override Task> GetDataAsync() { return AccountService.GetAllAccountsAsync(); } }