CineBook Projekt hinzugefügt

This commit is contained in:
2026-03-12 14:28:52 +01:00
commit b6357c9b8a
33 changed files with 2857 additions and 0 deletions

11
Helpers/Session.cs Normal file
View File

@@ -0,0 +1,11 @@
using CineBook.Models;
namespace CineBook.Helpers;
public static class Session
{
public static User? CurrentUser { get; set; }
public static bool IsLoggedIn => CurrentUser != null;
public static bool IsAdmin => CurrentUser?.IsAdmin == true;
public static void Logout() => CurrentUser = null;
}