#154 : Déplacement de la recherche des artistes dans les RepositoryArtiste.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user