Ejemplo n.º 1
0
        public async Task Handle(CreateSpecificationCommand command)
        {
            if (await _specificationRepository.GetByLeafCategoryId(command.LeafCategoryId) != null)
            {
                throw new Exception();
            }

            var dimension = SpecificationFactory.CreateSpecificationFrom(command);

            _specificationRepository.Add(dimension);
        }