InitialCode Commit

This commit is contained in:
Mueller Wayan
2025-09-07 19:06:43 +02:00
parent 887948bb02
commit d29e25992b
183 changed files with 82537 additions and 0 deletions
@@ -0,0 +1,44 @@
using Humanizer;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
//using Microsoft.EntityFrameworkCore;
using MTG_CollectionVerwaltung.Data.MTGCollection;
using MTG_CollectionVerwaltung.Helpers;
//using static Microsoft.EntityFrameworkCore.DbLoggerCategory;
using static System.Net.WebRequestMethods;
namespace MTG_CollectionVerwaltung.Pages
{
public class IndexModel : PageModel
{
private readonly ILogger<IndexModel> _logger;
private readonly MTGContext _context;
public IndexModel(ILogger<IndexModel> logger, MTGContext mTGContext)
{
_logger = logger;
_context = mTGContext;
}
public void OnGet()
{
}
public IActionResult OnPostDecks(string searchInput)
{
return Page();
}
public IActionResult OnPostCards(string searchInput)
{
//var cards = CardSearcher.SearchCards(_context, searchInput);
return RedirectToPage("/Cards/Search", new { Searchquerry = searchInput });
}
}
}