feat: refactoriser le service TitreAdmin et le contrôleur pour utiliser TitreAdminDTO pour les données de commande
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user