From c26e48f4f22af4c71997378b2b80ddaef786460b Mon Sep 17 00:00:00 2001 From: "josephine.vetu" Date: Thu, 5 Mar 2026 14:31:04 +0100 Subject: [PATCH] =?UTF-8?q?fix/=20Nom=20de=20la=20m=C3=A9thode=20ArtisteFa?= =?UTF-8?q?ctory=20modifi=C3=A9.=20Changement=20du=20nom=20du=20dossier=20?= =?UTF-8?q?Controller=20en=20Controllers.=20Changement=20des=20imports=20d?= =?UTF-8?q?e=20bootstrap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Webzine.Entity/Fixtures/ArtisteFactory.cs | 2 +- .../{Controller => Controllers}/AccueilController.cs | 0 .../{Controller => Controllers}/ApiController.cs | 2 +- .../{Controller => Controllers}/ArtisteController.cs | 2 +- .../{Controller => Controllers}/TitreController.cs | 2 +- Webzine.WebApplication/Views/Shared/_Layout.cshtml | 3 ++- 6 files changed, 6 insertions(+), 5 deletions(-) rename Webzine.WebApplication/{Controller => Controllers}/AccueilController.cs (100%) rename Webzine.WebApplication/{Controller => Controllers}/ApiController.cs (93%) rename Webzine.WebApplication/{Controller => Controllers}/ArtisteController.cs (96%) rename Webzine.WebApplication/{Controller => Controllers}/TitreController.cs (99%) diff --git a/Webzine.Entity/Fixtures/ArtisteFactory.cs b/Webzine.Entity/Fixtures/ArtisteFactory.cs index 4161e35..e9af87b 100644 --- a/Webzine.Entity/Fixtures/ArtisteFactory.cs +++ b/Webzine.Entity/Fixtures/ArtisteFactory.cs @@ -13,7 +13,7 @@ namespace Webzine.Entity.Fixtures /// /// /// - public static Artiste FindByName(string nom) + public static Artiste SeedArtisteByName(string nom) { // On définit nos albums "bouchonnés" var albumsData = new[] diff --git a/Webzine.WebApplication/Controller/AccueilController.cs b/Webzine.WebApplication/Controllers/AccueilController.cs similarity index 100% rename from Webzine.WebApplication/Controller/AccueilController.cs rename to Webzine.WebApplication/Controllers/AccueilController.cs diff --git a/Webzine.WebApplication/Controller/ApiController.cs b/Webzine.WebApplication/Controllers/ApiController.cs similarity index 93% rename from Webzine.WebApplication/Controller/ApiController.cs rename to Webzine.WebApplication/Controllers/ApiController.cs index 70d2c51..39e8825 100644 --- a/Webzine.WebApplication/Controller/ApiController.cs +++ b/Webzine.WebApplication/Controllers/ApiController.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Mvc; -namespace Webzine.WebApplication.Controller; +namespace Webzine.WebApplication.Controllers; public class ApiController : ControllerBase { diff --git a/Webzine.WebApplication/Controller/ArtisteController.cs b/Webzine.WebApplication/Controllers/ArtisteController.cs similarity index 96% rename from Webzine.WebApplication/Controller/ArtisteController.cs rename to Webzine.WebApplication/Controllers/ArtisteController.cs index 0f26971..0f5b91a 100644 --- a/Webzine.WebApplication/Controller/ArtisteController.cs +++ b/Webzine.WebApplication/Controllers/ArtisteController.cs @@ -31,7 +31,7 @@ namespace Webzine.WebApplication.Controllers .ToTitleCase(nom.Replace("-", " ")); // On appelle la factory pour obtenir l'artiste unique - var artiste = ArtisteFactory.FindByName(nomPropre); + var artiste = ArtisteFactory.SeedArtisteByName(nomPropre); if (artiste == null) { diff --git a/Webzine.WebApplication/Controller/TitreController.cs b/Webzine.WebApplication/Controllers/TitreController.cs similarity index 99% rename from Webzine.WebApplication/Controller/TitreController.cs rename to Webzine.WebApplication/Controllers/TitreController.cs index 42693d4..23d400f 100644 --- a/Webzine.WebApplication/Controller/TitreController.cs +++ b/Webzine.WebApplication/Controllers/TitreController.cs @@ -3,7 +3,7 @@ using Webzine.Entity; using Webzine.Entity.Fixtures; using Webzine.WebApplication.ViewsModels.Titre; -namespace Webzine.WebApplication.Controller; +namespace Webzine.WebApplication.Controllers; /// /// Contrôleur responsable de la gestion des titres musicaux : diff --git a/Webzine.WebApplication/Views/Shared/_Layout.cshtml b/Webzine.WebApplication/Views/Shared/_Layout.cshtml index b807a6d..9573fa6 100644 --- a/Webzine.WebApplication/Views/Shared/_Layout.cshtml +++ b/Webzine.WebApplication/Views/Shared/_Layout.cshtml @@ -6,7 +6,8 @@ @ViewData["Title"] - Webzine @* Ajout de bootstrap *@ - + + @* Ajout de font-awesome *@