@page "/AddData" @using System.Net.Http @using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Components.Forms @using Microsoft.AspNetCore.Components.Routing @using Microsoft.AspNetCore.Components.Web @using Microsoft.JSInterop @inject NavigationManager NavigationManager @using System.Text.RegularExpressions; @using Newtonsoft.Json; @inject NavigationManager NavigationManager @{ CheckConnect(); void CheckConnect() { if (BlazorApp.Classasync.userautorisate == false) { NavigationManager.NavigateTo("Authorization"); } } }