Servizi e cose
This commit is contained in:
16
StandManager.Service/ClienteService.cs
Normal file
16
StandManager.Service/ClienteService.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
16
StandManager.Service/DestinazioneService.cs
Normal file
16
StandManager.Service/DestinazioneService.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
16
StandManager.Service/EventoService.cs
Normal file
16
StandManager.Service/EventoService.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
8
StandManager.Service/Interfaces/IClienteService.cs
Normal file
8
StandManager.Service/Interfaces/IClienteService.cs
Normal file
@ -0,0 +1,8 @@
|
||||
using OAService.Service.Servizi.Interfacce;
|
||||
using StandManager.Domain.Entita;
|
||||
|
||||
namespace StandManager.Service.Interfaces;
|
||||
|
||||
public interface IClienteService : ITService<Cliente>
|
||||
{
|
||||
}
|
||||
6
StandManager.Service/Interfaces/IDestinazioneService.cs
Normal file
6
StandManager.Service/Interfaces/IDestinazioneService.cs
Normal file
@ -0,0 +1,6 @@
|
||||
using OAService.Service.Servizi.Interfacce;
|
||||
using StandManager.Domain.Entita;
|
||||
|
||||
namespace StandManager.Service.Interfaces;
|
||||
|
||||
public interface IDestinazioneService : ITService<Destinazione>{}
|
||||
6
StandManager.Service/Interfaces/IEventoService.cs
Normal file
6
StandManager.Service/Interfaces/IEventoService.cs
Normal file
@ -0,0 +1,6 @@
|
||||
using OAService.Service.Servizi.Interfacce;
|
||||
using StandManager.Domain.Entita;
|
||||
|
||||
namespace StandManager.Service.Interfaces;
|
||||
|
||||
public interface IEventoService : ITService<Evento>{}
|
||||
@ -0,0 +1,6 @@
|
||||
using OAService.Service.Servizi.Interfacce;
|
||||
using StandManager.Domain.Entita;
|
||||
|
||||
namespace StandManager.Service.Interfaces;
|
||||
|
||||
public interface IIscrizioneEventoService : ITService<IscrizioneEvento>{}
|
||||
@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
6
StandManager.Service/Interfaces/IReferenteService.cs
Normal file
6
StandManager.Service/Interfaces/IReferenteService.cs
Normal file
@ -0,0 +1,6 @@
|
||||
using OAService.Service.Servizi.Interfacce;
|
||||
using StandManager.Domain.Entita;
|
||||
|
||||
namespace StandManager.Service.Interfaces;
|
||||
|
||||
public interface IReferenteService : ITService<Referente>{}
|
||||
16
StandManager.Service/IscrizioneEventoService.cs
Normal file
16
StandManager.Service/IscrizioneEventoService.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
@ -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; }
|
||||
}
|
||||
16
StandManager.Service/ReferenteService.cs
Normal file
16
StandManager.Service/ReferenteService.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user