#89 Supprimer les méthodes de controllers inutiles, les using non utilisés. Remplacer NotFound par des redirections vers les index et des logs.

This commit is contained in:
josephine.vetu
2026-03-25 10:47:52 +01:00
parent 175a3083fe
commit bea1e21039
19 changed files with 76 additions and 158 deletions

View File

@@ -13,14 +13,14 @@ public class RechercheController : Controller
public RechercheController(ILogger<RechercheController> logger, ITitreRepository titreRepository)
{
_logger = logger;
_titreRepository = titreRepository;
this._logger = logger;
this._titreRepository = titreRepository;
}
[HttpPost("")]
public IActionResult Index(string mot)
{
_logger.LogInformation("Recherche artistes/titres pour le mot : {Mot}.", mot);
this._logger.LogInformation("Recherche artistes/titres pour le mot : {Mot}.", mot);
var titres = _titreRepository.Search(mot)
.Concat(_titreRepository.SearchByStyle(mot))