//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; }
public ProductoService(IMasterRepository masterRepository, IMapper mapper, IProductoValidationService productoValidationService, IClienteValidationService clienteValidationService) { this.masterRepository = masterRepository; this.mapper = mapper; this.productoValidationService = productoValidationService; this.clienteValidationService = clienteValidationService; }