- @foreach (var bundle in @Model.Where(b => b.Price != 0 && b.Figures.Count > 0)
- .OrderByDescending(b => b.Id))
+ @foreach (var bundle in bundles)
{
diff --git a/Views/Home/_SignUp.cshtml b/Pages/Shared/_SignUp.cshtml
similarity index 100%
rename from Views/Home/_SignUp.cshtml
rename to Pages/Shared/_SignUp.cshtml
diff --git a/Program.cs b/Program.cs
index cfc572a..361be3e 100644
--- a/Program.cs
+++ b/Program.cs
@@ -26,12 +26,14 @@ builder.Services.Configure( opts =>
});
builder.Services.AddControllersWithViews();
+builder.Services.AddRazorPages();
var app = builder.Build();
app.UseStaticFiles();
app.MapControllers();
app.MapDefaultControllerRoute();
+app.MapRazorPages();
app.UseAuthentication();
app.UseAuthorization();