24 lines
698 B
C#
24 lines
698 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using OAService.Service.Repository;
|
|
using OAService.Service.Servizi.Implementazioni;
|
|
using StandManager.Domain.Entita;
|
|
using StandManager.Service.Interfaces;
|
|
using StandManager.Service.Repository;
|
|
|
|
namespace StandManager.Service;
|
|
|
|
public class UtenteService : TService<Utente>, IUtenteService
|
|
{
|
|
private readonly IStandManagerUnitOfWork _unitOfWork;
|
|
|
|
public UtenteService(IStandManagerUnitOfWork unitOfWork) : base(unitOfWork)
|
|
{
|
|
_unitOfWork = unitOfWork;
|
|
}
|
|
|
|
public async Task<List<Utente>> ListaCapoarea()
|
|
{
|
|
return (await _unitOfWork.UtenteRepository.RicercaQueryable(x => x.IsCapoarea, skip:0, take:0)).ToList();
|
|
}
|
|
}
|