using Microsoft.AspNetCore.Authorization; using SoroushAsadi.Services; namespace SoroushAsadi.Pages.Admin; [Authorize] public class AdminIndexModel(ContentService content) : Microsoft.AspNetCore.Mvc.RazorPages.PageModel { public int SectionCount { get; private set; } public void OnGet() => SectionCount = content.GetSectionKeys().Count; }