feat: refactoriser le service TitreAdmin et le contrôleur pour utiliser TitreAdminDTO pour les données de commande

This commit is contained in:
mirage
2026-04-01 11:14:37 +02:00
parent 7c373d081b
commit 1423295d2a
4 changed files with 12 additions and 13 deletions

View File

@@ -2,8 +2,8 @@ namespace Webzine.Business;
using Microsoft.Extensions.Logging;
using Webzine.Business.Contracts.Dto;
using Webzine.Business.Contracts;
using Webzine.Business.Contracts.Models;
using Webzine.Entity;
using Webzine.Repository.Contracts;
@@ -39,7 +39,7 @@ public class TitreAdminService : ITitreAdminService
}
/// <inheritdoc/>
public void CreerTitre(TitreAdminCommande commande)
public void CreerTitre(TitreAdminDTO commande)
{
this.logger.LogInformation(
"Création d'un nouveau titre '{Libelle}' pour l'artiste ID {IdArtiste}.",
@@ -71,7 +71,7 @@ public class TitreAdminService : ITitreAdminService
}
/// <inheritdoc/>
public void ModifierTitre(TitreAdminCommande commande)
public void ModifierTitre(TitreAdminDTO commande)
{
this.logger.LogInformation("Modification du titre ID {Id} ('{Libelle}').", commande.Id, commande.Libelle);