1
0

Repository cleanup, Added art

This commit is contained in:
Michael Gordeev
2019-11-09 12:36:38 +03:00
parent bbcb6b179e
commit 22fb87a132
145 changed files with 16 additions and 14597 deletions
@@ -0,0 +1,20 @@
using Microsoft.AspNetCore.Mvc;
using MyWebsite.Models;
using Newtonsoft.Json;
using System.Net.Http;
using System.Threading.Tasks;
namespace MyWebsite.Controllers
{
public class ProjectsController : Controller
{
public async Task<IActionResult> Index()
{
Project[] projects = JsonConvert.DeserializeObject<Project[]>(await new HttpClient().GetStringAsync($"{Request.Scheme}://{Request.Host}/Projects.json"));
ViewData["Images"] = projects;
return View();
}
}
}