- Ajout d'un service base pour plus de scalabilité et de duplication de code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user