From a70b5563799802302affb427fddf4e1006301f73 Mon Sep 17 00:00:00 2001 From: "josephine.vetu" Date: Thu, 5 Mar 2026 15:42:18 +0100 Subject: [PATCH] #23 Controleur et vue contact ok --- .../AccueilController.cs | 0 .../ApiController.cs | 2 +- .../Controllers/ContactController.cs | 15 +++++ .../TitreController.cs | 2 +- .../Views/Contact/Index.cshtml | 66 +++++++++++++++++++ .../Views/Shared/_Layout.cshtml | 6 +- .../Webzine.WebApplication.csproj.user | 2 +- 7 files changed, 87 insertions(+), 6 deletions(-) rename Webzine.WebApplication/{Controller => Controllers}/AccueilController.cs (100%) rename Webzine.WebApplication/{Controller => Controllers}/ApiController.cs (93%) create mode 100644 Webzine.WebApplication/Controllers/ContactController.cs rename Webzine.WebApplication/{Controller => Controllers}/TitreController.cs (99%) create mode 100644 Webzine.WebApplication/Views/Contact/Index.cshtml 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/Controllers/ContactController.cs b/Webzine.WebApplication/Controllers/ContactController.cs new file mode 100644 index 0000000..557e1fb --- /dev/null +++ b/Webzine.WebApplication/Controllers/ContactController.cs @@ -0,0 +1,15 @@ +using Microsoft.AspNetCore.Mvc; + +namespace Webzine.WebApplication.Controllers +{ + /// + /// Controller pour la page contact. + /// + public class ContactController : Controller + { + public IActionResult Index() + { + return View(); + } + } +} 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/Contact/Index.cshtml b/Webzine.WebApplication/Views/Contact/Index.cshtml new file mode 100644 index 0000000..d2c892b --- /dev/null +++ b/Webzine.WebApplication/Views/Contact/Index.cshtml @@ -0,0 +1,66 @@ +@{ + ViewData["Title"] = "Contact"; +} + +
+

Contact

+
+ C.U.C.D.B - DIIAGE
+ 69 Avenue Aristide Briand
+ 21000 Dijon

+
+
+ Phone : 03 80 40 50 60
+ secretariat@cucdb.fr +
+ +
+ + \ No newline at end of file diff --git a/Webzine.WebApplication/Views/Shared/_Layout.cshtml b/Webzine.WebApplication/Views/Shared/_Layout.cshtml index 9d5545a..80e4341 100644 --- a/Webzine.WebApplication/Views/Shared/_Layout.cshtml +++ b/Webzine.WebApplication/Views/Shared/_Layout.cshtml @@ -6,9 +6,9 @@ @ViewData["Title"] - Webzine @* Ajout de bootstrap *@ - - - + + + @* Ajout de font-awesome *@ diff --git a/Webzine.WebApplication/Webzine.WebApplication.csproj.user b/Webzine.WebApplication/Webzine.WebApplication.csproj.user index ea9a183..9aaa4d4 100644 --- a/Webzine.WebApplication/Webzine.WebApplication.csproj.user +++ b/Webzine.WebApplication/Webzine.WebApplication.csproj.user @@ -2,7 +2,7 @@ https - MvcControllerWithActionsScaffolder + MvcControllerEmptyScaffolder root/Common/MVC/Controller RazorViewEmptyScaffolder root/Common/MVC/View