- Ajout d'un service base pour plus de scalabilité et de duplication de code

This commit is contained in:
yoannlgd
2025-03-03 18:31:37 +01:00
parent aed5f7ea93
commit fe91908098
12 changed files with 309 additions and 278 deletions

View File

@@ -1,15 +1,16 @@
using ldap_cesi.Repository.Services;
using ldap_cesi.Services.Interfaces;
using ldap_cesi.Entities;
using ldap_cesi.DTOs;
using ldap_cesi.DTOs.Inputs.Role;
using AutoMapper;
namespace ldap_cesi.Services;
public class RoleService : IRoleService
public class RoleService : ServiceBase<Role, RoleDto, RoleCreateDto, RoleUpdateDto>,IRoleService
{
private IRepositoryRole _repositoryRole;
public RoleService(IRepositoryRole repositoryRole)
public RoleService(IRepositoryRole repositoryRole, IMapper mapper, ILogger<RoleService> logger)
: base(repositoryRole, mapper, logger)
{
_repositoryRole = repositoryRole;
}
}