@page "/wallet" @using Microsoft.AspNetCore.Identity; @inject AuthenticationStateProvider AuthenticationStateProvider @inject UserManager UserManager; @attribute [Authorize] @code { bool adm = false; bool init = false; bool ver = false; bool req = false; bool admin { get { return adm; } set { adm = value; if (!account.roles.Contains(Models.Role.Admin)) account.roles.Add(Models.Role.Admin); else account.roles.Remove(Models.Role.Admin); } } bool initiator { get { return init; } set { init = value; if (!account.roles.Contains(Models.Role.Initiator)) account.roles.Add(Models.Role.Initiator); else account.roles.Remove(Models.Role.Initiator); } } bool verifier { get { return ver; } set { ver = value; if (!account.roles.Contains(Models.Role.Verifier)) account.roles.Add(Models.Role.Verifier); else account.roles.Remove(Models.Role.Verifier); } } bool requester { get { return req; } set { req = value; if (!account.roles.Contains(Models.Role.Requester)) account.roles.Add(Models.Role.Requester); else account.roles.Remove(Models.Role.Requester); } } }

Кошелек @account.roles.Count; @account.Name

@foreach (var role in account.roles) @role

UUID: @account.UUID
Name: @account.Name
Email: @account.Email
ETH Address: @account.eth_address
Balance: @myBalance WEI
Администратор:
Инициатор:
Заказчик:
Верификатор: