initial commit

This commit is contained in:
2026-08-04 14:41:21 +03:00
parent 3cb8fcde60
commit 1a1d6186d8
101 changed files with 23239 additions and 0 deletions

19
Models/BasePageModel.cs Normal file
View File

@@ -0,0 +1,19 @@
using Microsoft.Data.SqlClient;
namespace Library.Models;
public class BasePageModel
{
public string PageTitle = "";
public UserData? UserData = null;
public CategoryTreeData CategoryTree { init => m_CategoryTree = value; get => m_CategoryTree; }
private CategoryTreeData m_CategoryTree = new( );
public BasePageModel( SqlConnection? db )
{
if ( db != null )
{
m_CategoryTree.LoadCategoryTree( db! );
}
}
}