Servizi e cose

This commit is contained in:
2025-12-01 15:49:52 +01:00
parent 319e348911
commit 7eaa96281c
26 changed files with 1560 additions and 11 deletions

View File

@ -0,0 +1,16 @@
using OAService.Service.Servizi.Implementazioni;
using StandManager.Domain.Entita;
using StandManager.Service.Interfaces;
using StandManager.Service.Repository;
namespace StandManager.Service;
public class ClienteService : TService<Cliente>, IClienteService
{
private readonly IStandManagerUnitOfWork _unitOfWork;
public ClienteService(IStandManagerUnitOfWork unitOfWork) : base(unitOfWork)
{
_unitOfWork = unitOfWork;
}
}

View File

@ -0,0 +1,16 @@
using OAService.Service.Servizi.Implementazioni;
using StandManager.Domain.Entita;
using StandManager.Service.Interfaces;
using StandManager.Service.Repository;
namespace StandManager.Service;
public class DestinazioneService : TService<Destinazione>, IDestinazioneService
{
private readonly IStandManagerUnitOfWork _unitOfWork;
public DestinazioneService(IStandManagerUnitOfWork unitOfWork) : base(unitOfWork)
{
_unitOfWork = unitOfWork;
}
}

View File

@ -0,0 +1,16 @@
using OAService.Service.Servizi.Implementazioni;
using StandManager.Domain.Entita;
using StandManager.Service.Interfaces;
using StandManager.Service.Repository;
namespace StandManager.Service;
public class EventoService : TService<Evento>, IEventoService
{
private readonly IStandManagerUnitOfWork _unitOfWork;
public EventoService(IStandManagerUnitOfWork unitOfWork) : base(unitOfWork)
{
_unitOfWork = unitOfWork;
}
}

View File

@ -0,0 +1,8 @@
using OAService.Service.Servizi.Interfacce;
using StandManager.Domain.Entita;
namespace StandManager.Service.Interfaces;
public interface IClienteService : ITService<Cliente>
{
}

View File

@ -0,0 +1,6 @@
using OAService.Service.Servizi.Interfacce;
using StandManager.Domain.Entita;
namespace StandManager.Service.Interfaces;
public interface IDestinazioneService : ITService<Destinazione>{}

View File

@ -0,0 +1,6 @@
using OAService.Service.Servizi.Interfacce;
using StandManager.Domain.Entita;
namespace StandManager.Service.Interfaces;
public interface IEventoService : ITService<Evento>{}

View File

@ -0,0 +1,6 @@
using OAService.Service.Servizi.Interfacce;
using StandManager.Domain.Entita;
namespace StandManager.Service.Interfaces;
public interface IIscrizioneEventoService : ITService<IscrizioneEvento>{}

View File

@ -2,6 +2,11 @@
{
public interface IManagerService
{
public IClienteService ClienteService{ get; set; }
public IDestinazioneService DestinazioneService{ get; set; }
public IEventoService EventoService{ get; set; }
public IIscrizioneEventoService IscrizioneEventoService{ get; set; }
public IReferenteService ReferenteService{ get; set; }
public IUtenteService UtenteService { get; set; }
}
}

View File

@ -0,0 +1,6 @@
using OAService.Service.Servizi.Interfacce;
using StandManager.Domain.Entita;
namespace StandManager.Service.Interfaces;
public interface IReferenteService : ITService<Referente>{}

View File

@ -0,0 +1,16 @@
using OAService.Service.Servizi.Implementazioni;
using StandManager.Domain.Entita;
using StandManager.Service.Interfaces;
using StandManager.Service.Repository;
namespace StandManager.Service;
public class IscrizioneEventoService : TService<IscrizioneEvento>, IIscrizioneEventoService
{
private readonly IStandManagerUnitOfWork _unitOfWork;
public IscrizioneEventoService(IStandManagerUnitOfWork unitOfWork) : base(unitOfWork)
{
_unitOfWork = unitOfWork;
}
}

View File

@ -4,10 +4,21 @@ namespace StandManager.Service;
public class ManagerService : IManagerService
{
public ManagerService(IUtenteService utenteService)
public ManagerService(IUtenteService utenteService, IClienteService clienteService, IDestinazioneService destinazioneService, IEventoService eventoService,
IIscrizioneEventoService iscrizioneEventoService, IReferenteService referenteService)
{
UtenteService = utenteService;
ClienteService = clienteService;
DestinazioneService = destinazioneService;
EventoService = eventoService;
IscrizioneEventoService = iscrizioneEventoService;
ReferenteService = referenteService;
}
public IUtenteService UtenteService { get; set; }
public IClienteService ClienteService { get; set; }
public IDestinazioneService DestinazioneService { get; set; }
public IEventoService EventoService { get; set; }
public IIscrizioneEventoService IscrizioneEventoService { get; set; }
public IReferenteService ReferenteService { get; set; }
}

View File

@ -0,0 +1,16 @@
using OAService.Service.Servizi.Implementazioni;
using StandManager.Domain.Entita;
using StandManager.Service.Interfaces;
using StandManager.Service.Repository;
namespace StandManager.Service;
public class ReferenteService : TService<Referente>, IReferenteService
{
private readonly IStandManagerUnitOfWork _unitOfWork;
public ReferenteService(IStandManagerUnitOfWork unitOfWork) : base(unitOfWork)
{
_unitOfWork = unitOfWork;
}
}

View File

@ -1,3 +1,4 @@
using OAService.Service.Repository;
using OAService.Service.Servizi.Implementazioni;
using StandManager.Domain.Entita;
using StandManager.Service.Interfaces;
@ -13,4 +14,4 @@ public class UtenteService : TService<Utente>, IUtenteService
{
_unitOfWork = unitOfWork;
}
}
}