- Benutzer
+
+
+ ToDo
+
+
+
+
+ Abgeschlossen
+
+ @if (CurrentUser.IsAdmin())
+ {
+
+
+ Benutzer
+
+
+ }
+
Aktivitäten
diff --git a/FoodsharingSiegen.Server/Shared/NavMenu.razor.cs b/FoodsharingSiegen.Server/Shared/NavMenu.razor.cs
new file mode 100644
index 0000000..738840f
--- /dev/null
+++ b/FoodsharingSiegen.Server/Shared/NavMenu.razor.cs
@@ -0,0 +1,43 @@
+using FoodsharingSiegen.Contracts.Entity;
+using FoodsharingSiegen.Server.Auth;
+using Microsoft.AspNetCore.Components;
+
+namespace FoodsharingSiegen.Server.Shared
+{
+ ///
+ /// The nav menu class (a. beging, 07.02.2023)
+ ///
+ public partial class NavMenu
+ {
+ #region Dependencies
+
+ ///
+ /// Gets or sets the value of the auth service (ab)
+ ///
+ [Inject] protected AuthService AuthService { get; set; } = null!;
+
+ #endregion
+
+ #region Private Properties
+
+ ///
+ /// Gets the value of the current user (ab)
+ ///
+ private User CurrentUser => AuthService.User ?? new User();
+
+ #endregion
+
+ #region Override OnInitializedAsync
+
+ ///
+ /// Ons the initialized (a. beging, 07.02.2023)
+ ///
+ protected override async Task OnInitializedAsync()
+ {
+ await AuthService.Initialize();
+ await base.OnInitializedAsync();
+ }
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/FoodsharingSiegen.Server/_Imports.razor b/FoodsharingSiegen.Server/_Imports.razor
index 38f62e9..e066507 100644
--- a/FoodsharingSiegen.Server/_Imports.razor
+++ b/FoodsharingSiegen.Server/_Imports.razor
@@ -10,4 +10,9 @@
@using FoodsharingSiegen.Server.Shared
@using Blazorise
@using Blazorise.DataGrid
-@using Blazorise.Components
\ No newline at end of file
+@using Blazorise.Components
+@using FoodsharingSiegen.Server.BaseClasses
+@using FoodsharingSiegen.Server.Dialogs
+@using FoodsharingSiegen.Server.Controls
+@using FoodsharingSiegen.Contracts.Entity
+@using FoodsharingSiegen.Contracts.Helper
\ No newline at end of file