From 701d474949e5cb72b8ed7b29fec45ad74580f570 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Tue, 8 Aug 2023 13:20:21 +1000 Subject: Initial commit --- Pages/Index.cshtml.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Pages/Index.cshtml.cs (limited to 'Pages/Index.cshtml.cs') diff --git a/Pages/Index.cshtml.cs b/Pages/Index.cshtml.cs new file mode 100644 index 0000000..e03a330 --- /dev/null +++ b/Pages/Index.cshtml.cs @@ -0,0 +1,15 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace HyperBooru.Pages; + +public class IndexModel : PageModel { + public IEnumerable Media => db.Media; + + private HyperBooruDbContext db; + + public IndexModel(HyperBooruDbContext db) => + this.db = db; + + public void OnGet() {} +} \ No newline at end of file -- cgit v1.3