From f17ba0050a2f6e6dd2980e0134364b61b12a0e11 Mon Sep 17 00:00:00 2001 From: linuxct Date: Mon, 13 Jul 2020 03:58:15 +0200 Subject: [PATCH] Si --- .../Controllers/HomeController.cs | 10 ++++++++++ OD.WebApplication/OD.WebApplication.csproj | 7 +++++++ OD.WebApplication/Views/Home/Upload.cshtml | 18 ++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 OD.WebApplication/Views/Home/Upload.cshtml 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 +
+ + } + +