Пример #1
0
 //Clase e interfaz de validacion , interfaz de esta clase, DTOs,  mapper, mensajes constantes, dependecy intejection en startup
 public ClienteService(IMasterRepository masterRepository, IMapper mapper,
                       IGeneralValidationService generalValidationService, IClienteValidationService clienteValidationService)
 {
     this.masterRepository         = masterRepository;
     this.mapper                   = mapper;
     this.generalValidationService = generalValidationService;
     this.clienteValidationService = clienteValidationService;
 }
Пример #2
0
 public ProductoService(IMasterRepository masterRepository, IMapper mapper,
                        IProductoValidationService productoValidationService,
                        IClienteValidationService clienteValidationService)
 {
     this.masterRepository          = masterRepository;
     this.mapper                    = mapper;
     this.productoValidationService = productoValidationService;
     this.clienteValidationService  = clienteValidationService;
 }