This commit is contained in:
josephine.vetu
2026-03-31 13:53:42 +02:00
parent 7e903d56b9
commit f193aa47e1
11 changed files with 21 additions and 21 deletions

View File

@@ -11,7 +11,7 @@ namespace Webzine.WebApplication.Controllers
using Webzine.WebApplication.ViewModels.Titre;
[Route("recherche")]
public class RechercheController : Controller
public class RechercheController : Controller // TODO à modifier intégralement et à commenter
{
private readonly ILogger<RechercheController> logger;
private readonly ITitreRepository titreRepository;
@@ -46,7 +46,7 @@ namespace Webzine.WebApplication.Controllers
.Where(a => a != null
&& !string.IsNullOrWhiteSpace(a.Nom)
&& !string.IsNullOrWhiteSpace(mot)
&& a.Nom.Contains(mot, StringComparison.OrdinalIgnoreCase))
&& a.Nom.Contains(mot, StringComparison.OrdinalIgnoreCase)) // TODO OrdinalIgnoreCase pas bien
.DistinctBy(a => a!.IdArtiste)
.OrderBy(a => a!.Nom)
.Select(a => new RechercheArtisteItem

View File

@@ -82,7 +82,7 @@ namespace Webzine.WebApplication.Controllers
/// </summary>
/// <param name="style">Nom du style musical.</param>
/// <returns>Vue contenant la liste filtree.</returns>
[HttpGet("style/{style}")]
[HttpGet("style/{style}")] // TODO pas de route écrite en dur dans le controller
public IActionResult Style(string style)
{
this.logger.LogInformation("Recherche des titres pour le style : {Style}.", style);