This commit is contained in:
linuxct 2020-07-13 03:58:15 +02:00
parent ad375bb979
commit f17ba0050a
3 changed files with 35 additions and 0 deletions

View File

@ -23,6 +23,16 @@ namespace OD.WebApplication.Controllers
return View();
}
public IActionResult Upload()
{
return View();
}
public async Task<IActionResult> UploadCSV()
{
return Ok();
}
public IActionResult Privacy()
{
return View();

View File

@ -4,4 +4,11 @@
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Content Update="Views\Home\Upload.cshtml">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
</ItemGroup>
</Project>

View File

@ -0,0 +1,18 @@
@using Microsoft.AspNetCore.Mvc.Rendering
@{
ViewData["Title"] = "Upload page";
}
<div class="text-center">
<h4>Escoge el CSV a parsear</h4>
<br/>
@using (Html.BeginForm("UploadCSV", "Home", FormMethod.Post, new {id = "loginForm"}))
{
@Html.AntiForgeryToken()
<div class="form-group">
Do your magic pablo
</div>
<input class="btn btn-outline-primary" type="submit"/>
}
</div>