ComuneIstat

This commit is contained in:
2025-12-19 10:38:51 +01:00
parent 39246b5d16
commit 1f87913904
15 changed files with 2379 additions and 36 deletions

View File

@ -5,5 +5,5 @@ namespace StandManager.Service.Interfaces;
public interface IUtenteService : ITService<Utente>
{
Task<List<Utente>> ListaCapoarea();
}

View File

@ -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();*/
}
}