From 19fa9ef333996c4a3365be7a65f9135c18fe2fd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Desc=C3=B4teaux?= <125318411+marcdescotes@users.noreply.github.com> Date: Thu, 21 Sep 2023 20:47:10 -0400 Subject: [PATCH] Added services in Program, agents appear normally --- RobotsWantedLeague/Program.cs | 2 +- RobotsWantedLeague/Views/Agents/Agent.cshtml | 15 ++++++--------- RobotsWantedLeague/Views/Agents/Index.cshtml | 2 +- RobotsWantedLeague/Views/Robots/Robot.cshtml | 2 +- 4 files changed, 9 insertions(+), 12 deletions(-) diff --git a/RobotsWantedLeague/Program.cs b/RobotsWantedLeague/Program.cs index 9c22748..a34d5d6 100644 --- a/RobotsWantedLeague/Program.cs +++ b/RobotsWantedLeague/Program.cs @@ -5,7 +5,7 @@ var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllersWithViews(); builder.Services.AddSingleton(); -builder.Services.AddSingleton(); +builder.Services.AddSingleton(); var app = builder.Build(); // Configure the HTTP request pipeline. diff --git a/RobotsWantedLeague/Views/Agents/Agent.cshtml b/RobotsWantedLeague/Views/Agents/Agent.cshtml index 365e0eb..22c3361 100644 --- a/RobotsWantedLeague/Views/Agents/Agent.cshtml +++ b/RobotsWantedLeague/Views/Agents/Agent.cshtml @@ -14,18 +14,18 @@ - + + + + + + - - - - - @@ -35,6 +35,3 @@
Id@Model.Id
Nom @Model.Name
Id@Model.Id
Continent @Model.Continent
- - - diff --git a/RobotsWantedLeague/Views/Agents/Index.cshtml b/RobotsWantedLeague/Views/Agents/Index.cshtml index a205d75..b8a001d 100644 --- a/RobotsWantedLeague/Views/Agents/Index.cshtml +++ b/RobotsWantedLeague/Views/Agents/Index.cshtml @@ -1,5 +1,5 @@ @{ - ViewData["Title"] = "Home Page"; + ViewData["Title"] = "Agent List"; } @model List diff --git a/RobotsWantedLeague/Views/Robots/Robot.cshtml b/RobotsWantedLeague/Views/Robots/Robot.cshtml index e1d0770..dd8d05c 100644 --- a/RobotsWantedLeague/Views/Robots/Robot.cshtml +++ b/RobotsWantedLeague/Views/Robots/Robot.cshtml @@ -14,7 +14,7 @@ - +
Nom