diff --git a/OD.WebApplication/Controllers/HomeController.cs b/OD.WebApplication/Controllers/HomeController.cs index 499b5ce..499a12b 100644 --- a/OD.WebApplication/Controllers/HomeController.cs +++ b/OD.WebApplication/Controllers/HomeController.cs @@ -22,6 +22,16 @@ namespace OD.WebApplication.Controllers { return View(); } + + public IActionResult Upload() + { + return View(); + } + + public async Task UploadCSV() + { + return Ok(); + } public IActionResult Privacy() { diff --git a/OD.WebApplication/OD.WebApplication.csproj b/OD.WebApplication/OD.WebApplication.csproj index 42b3f94..9b84ef3 100644 --- a/OD.WebApplication/OD.WebApplication.csproj +++ b/OD.WebApplication/OD.WebApplication.csproj @@ -4,4 +4,11 @@ netcoreapp3.1 + + + true + PreserveNewest + + + diff --git a/OD.WebApplication/Views/Home/Upload.cshtml b/OD.WebApplication/Views/Home/Upload.cshtml new file mode 100644 index 0000000..3891903 --- /dev/null +++ b/OD.WebApplication/Views/Home/Upload.cshtml @@ -0,0 +1,18 @@ +@using Microsoft.AspNetCore.Mvc.Rendering +@{ + ViewData["Title"] = "Upload page"; +} + +
+

Escoge el CSV a parsear

+
+ @using (Html.BeginForm("UploadCSV", "Home", FormMethod.Post, new {id = "loginForm"})) + { + @Html.AntiForgeryToken() +
+ Do your magic pablo +
+ + } + +