summaryrefslogtreecommitdiffstats
path: root/src/Pages/App/ReservationForm.cshtml.cs
diff options
context:
space:
mode:
authorivar <i@oiee.no>2025-10-19 23:41:23 +0200
committerivar <i@oiee.no>2025-10-19 23:41:23 +0200
commit3f4c0720e1e3421431e7baa20882a4a4512a7fab (patch)
tree734ca81d7d0841d8863e3f523ebba14c282dc681 /src/Pages/App/ReservationForm.cshtml.cs
downloadfagprove-3f4c0720e1e3421431e7baa20882a4a4512a7fab.tar.xz
fagprove-3f4c0720e1e3421431e7baa20882a4a4512a7fab.zip
InitialHEADmaster
Diffstat (limited to 'src/Pages/App/ReservationForm.cshtml.cs')
-rw-r--r--src/Pages/App/ReservationForm.cshtml.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Pages/App/ReservationForm.cshtml.cs b/src/Pages/App/ReservationForm.cshtml.cs
new file mode 100644
index 0000000..e509a46
--- /dev/null
+++ b/src/Pages/App/ReservationForm.cshtml.cs
@@ -0,0 +1,24 @@
+using System.Collections.Generic;
+using System.Linq;
+using IOL.Fagprove.Data;
+using IOL.Fagprove.Data.Models;
+using Microsoft.AspNetCore.Mvc.RazorPages;
+
+namespace IOL.Fagprove.Pages.App
+{
+ public class ReservationForm : PageModel
+ {
+ public List<ReservationObject> Cabins { get; set; }
+ private readonly AppDbContext _context;
+
+ public ReservationForm(AppDbContext context)
+ {
+ _context = context;
+ }
+
+ public void OnGet()
+ {
+ Cabins = _context.Cabins.ToList();
+ }
+ }
+} \ No newline at end of file