ComuneIstat
This commit is contained in:
@ -5,5 +5,5 @@ namespace StandManager.Service.Interfaces;
|
||||
|
||||
public interface IUtenteService : ITService<Utente>
|
||||
{
|
||||
|
||||
Task<List<Utente>> ListaCapoarea();
|
||||
}
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OAService.Service.Repository;
|
||||
using OAService.Service.Servizi.Implementazioni;
|
||||
using StandManager.Domain.Entita;
|
||||
@ -14,4 +15,13 @@ public class UtenteService : TService<Utente>, IUtenteService
|
||||
{
|
||||
_unitOfWork = unitOfWork;
|
||||
}
|
||||
|
||||
public async Task<List<Utente>> ListaCapoarea()
|
||||
{
|
||||
return (await _unitOfWork.UtenteRepository.RicercaQueryable(x => x.IsCapoarea, skip:0, take:0)).ToList();
|
||||
/*return (await _unitOfWork.UtenteRepository.RicercaQueryable(x =>
|
||||
x.Ruolo.Permessi.Any(y => y.Feature.Type == FeatureType.Capoarea || y.Feature.Type == FeatureType.AdminGlobal),
|
||||
includi:x => x.Include(y => y.Ruolo).ThenInclude(z => z.Permessi).ThenInclude(u => u.Feature),
|
||||
skip: 0, take: 0)).ToList();*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user