#162 : Patch bug lors de retour sur une page "Delete" après la suppression d'un élément. Redirection sur la page "Index" en cas de retour en arrière de la part d'un utilisateur.

This commit is contained in:
Loic Masi
2026-03-31 16:48:40 +02:00
parent 0039bb981e
commit bf4b12997c
5 changed files with 18 additions and 4 deletions

View File

@@ -83,8 +83,8 @@ namespace Webzine.Repository
try
{
Artiste artiste = this.context.Artistes
.Include(a => a.Titres)
.First(a => a.IdArtiste == id);
.Include(a => a.Titres)
.FirstOrDefault(a => a.IdArtiste == id);
return artiste;
}
catch (Exception ex)