Added iOS badge, updated project info and transfrerred some js code to C#
This commit is contained in:
@@ -3,6 +3,7 @@ using MyWebsite.Models;
|
||||
using Newtonsoft.Json;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MyWebsite.Controllers
|
||||
{
|
||||
@@ -12,7 +13,19 @@ namespace MyWebsite.Controllers
|
||||
{
|
||||
Project[] projects = JsonConvert.DeserializeObject<Project[]>(await new HttpClient().GetStringAsync($"{Request.Scheme}://{Request.Host}/Projects.json"));
|
||||
|
||||
ViewData["Images"] = projects;
|
||||
ViewData["Projects"] = projects;
|
||||
ViewData["Badges"] = new Dictionary<string, string>
|
||||
{
|
||||
{ "csharp", "C# Programming language" },
|
||||
{ "dotnet", ".NET Framework" },
|
||||
{ "xamarin", "Xamarin Framework" },
|
||||
{ "unity", "Unity Engine" },
|
||||
{ "uwp", "Universal Windows Platform" },
|
||||
{ "windows", "Windows Platform" },
|
||||
{ "win32", "Windows Platform (Win32)" },
|
||||
{ "android", "Android Platform" },
|
||||
{ "ios", "iOS Platform" }
|
||||
};
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user