1
0

Updated CV page

This commit is contained in:
Michael Gordeev
2019-10-14 23:57:25 +03:00
parent 6b8ac8bd96
commit 213443f43a
5 changed files with 139 additions and 86 deletions
@@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Mvc;
using System.Net;
namespace MyWebsite.Controllers
{
@@ -6,5 +7,11 @@ namespace MyWebsite.Controllers
{
public IActionResult Index() =>
View();
public IActionResult Download()
{
byte[] data = new WebClient().DownloadData($"https://{Request.Host}/CV.pdf");
return File(data, "application/pdf", "[Michael Gordeev] CV.pdf");
}
}
}
@@ -9,6 +9,7 @@ namespace MyWebsite.Controllers
{
public class GalleryController : Controller
{
[HttpGet("Arts")]
public async Task<IActionResult> Index()
{
ViewData["Images"] = JsonConvert.DeserializeObject<Image[]>(await new HttpClient().GetStringAsync($"https://{Request.Host}/Gallery.json"));