#154 : Déplacement de la recherche des artistes dans les RepositoryArtiste.

This commit is contained in:
Loic Masi
2026-03-31 13:30:47 +02:00
parent 6f009fcc3d
commit e5ecf75f49
5 changed files with 37 additions and 9 deletions

View File

@@ -29,12 +29,9 @@ namespace Webzine.WebApplication.Controllers
{
this.logger.LogInformation("Recherche artistes/titres pour le mot : {Mot}.", mot);
var titres = this.titreRepository.Search(mot).ToList();
var titres = this.titreRepository.Search(mot);
var artistes = this.artisteRepository
.FindAll()
.Where(a => a.Nom.ToLower().Contains(mot.ToLower()))
.ToList();
var artistes = this.artisteRepository.Search(mot);
var vm = new RechercheIndexViewModel
{

View File

@@ -14,11 +14,11 @@ namespace Webzine.WebApplication.ViewModels.Recherche
/// <summary>
/// Artistes trouves.
/// </summary>
public List<Artiste> Artistes { get; set; } = new ();
public IEnumerable<Artiste> Artistes { get; set; } = new List<Artiste>();
/// <summary>
/// Titres trouves.
/// </summary>
public List<Titre> Titres { get; set; } = new ();
public IEnumerable<Titre> Titres { get; set; } = new List<Titre>();
}
}