#154 : Ajout de commentaire en suppression d'un fichier inutilisé.

This commit is contained in:
Loic Masi
2026-03-31 14:41:31 +02:00
parent c74d629782
commit ff2b06cef4
3 changed files with 13 additions and 17 deletions

View File

@@ -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,