WIP, thinking about converting to EF

This commit is contained in:
Lani Aung
2021-11-18 21:24:20 -07:00
parent fd8858aab3
commit 1fd14ebafd
20 changed files with 1513 additions and 179 deletions
+2 -3
View File
@@ -21,7 +21,6 @@ namespace fxl.codes.kisekae.Controllers
_databaseService = databaseService;
}
[HttpGet]
public async Task<IActionResult> Index()
{
var files = await _databaseService.GetAll();
@@ -37,9 +36,9 @@ namespace fxl.codes.kisekae.Controllers
_databaseService.StoreToDatabase(file);
return Redirect("/");
return View();
}
public IActionResult Privacy()
{
return View();
+5 -2
View File
@@ -1,3 +1,4 @@
using System.Threading.Tasks;
using fxl.codes.kisekae.Services;
using Microsoft.AspNetCore.Mvc;
@@ -12,9 +13,11 @@ namespace fxl.codes.kisekae.Controllers
_databaseService = databaseService;
}
public IActionResult Index(int id, int configId)
public async Task<IActionResult> Index(int id)
{
return View();
var model = await _databaseService.LoadConfig(id);
return View(model);
}
}
}