WIP, thinking about converting to EF
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user