fix/ Nom de la méthode ArtisteFactory modifié. Changement du nom du dossier Controller en Controllers. Changement des imports de bootstrap
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Webzine.Entity.Fixtures
|
||||
/// </summary>
|
||||
/// <param name="nom"></param>
|
||||
/// <returns></returns>
|
||||
public static Artiste FindByName(string nom)
|
||||
public static Artiste SeedArtisteByName(string nom)
|
||||
{
|
||||
// On définit nos albums "bouchonnés"
|
||||
var albumsData = new[]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Webzine.WebApplication.Controller;
|
||||
namespace Webzine.WebApplication.Controllers;
|
||||
|
||||
public class ApiController : ControllerBase
|
||||
{
|
||||
@@ -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)
|
||||
{
|
||||
@@ -3,7 +3,7 @@ using Webzine.Entity;
|
||||
using Webzine.Entity.Fixtures;
|
||||
using Webzine.WebApplication.ViewsModels.Titre;
|
||||
|
||||
namespace Webzine.WebApplication.Controller;
|
||||
namespace Webzine.WebApplication.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// Contrôleur responsable de la gestion des titres musicaux :
|
||||
@@ -6,7 +6,8 @@
|
||||
<title>@ViewData["Title"] - Webzine</title>
|
||||
|
||||
@* Ajout de bootstrap *@
|
||||
<script src="./js/bootstrap.min.js" defer></script>
|
||||
<script src="~/js/bootstrap.min.js" defer></script>
|
||||
<link rel="stylesheet" href="~/css/app.css">
|
||||
<link rel="stylesheet" href="~/css/bootstrap.min.css" />
|
||||
|
||||
@* Ajout de font-awesome *@
|
||||
|
||||
Reference in New Issue
Block a user