#154 : Ajout de commentaire en suppression d'un fichier inutilisé.
This commit is contained in:
@@ -25,14 +25,23 @@ namespace Webzine.WebApplication.Controllers
|
||||
this.artisteRepository = artisteRepository;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Affichage de la page Recherche depuis le header de l'app.
|
||||
/// </summary>
|
||||
/// <param name="mot">Nom d'artiste ou de titre.</param>
|
||||
/// <returns>Page de recherche avec les résultats.</returns>
|
||||
public IActionResult Index(string mot)
|
||||
{
|
||||
// Logger la recherche.
|
||||
this.logger.LogInformation("Recherche artistes/titres pour le mot : {Mot}.", mot);
|
||||
|
||||
// Recherche des titres.
|
||||
var titres = this.titreRepository.Search(mot);
|
||||
|
||||
// Recherche des artistes.
|
||||
var artistes = this.artisteRepository.Search(mot);
|
||||
|
||||
// Paramètres a retourner à la vue.
|
||||
var vm = new RechercheIndexViewModel
|
||||
{
|
||||
Mot = mot,
|
||||
|
||||
Reference in New Issue
Block a user