- <AuthorizeView>
- <Authorized>
- <a class="navbar-brand" href="Identity/Account/Manage">@context.User.Identity.Name</a>
- <form method="post" action="Identity/Account/LogOut">
- <button type="submit" class="nav-link btn btn-link">Выход</button>
- </form>
- </Authorized>
- <NotAuthorized>
- <a class="navbar-brand" href="Identity/Account/Register">Регистрация</a>
- <a class="navbar-brand" href="Identity/Account/Login">Вход</a>
- </NotAuthorized>
- </AuthorizeView>
|