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