Updated CV page
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user