public IActionResult Create([FromBody] ServicioCreateDto model)
        {
            long servicioId = _servicioApplicationService.Create(model);

            _amqpApplicationService.PublishMessage(servicioId);
            return(Ok("Servicio Creado!"));
        }
Example #2
0
        public IActionResult Create([FromBody] ProductCreateDto model)
        {
            long productId = _productApplicationService.Create(model);

            _amqpApplicationService.PublishMessage(productId);
            return(Ok("Product Created!"));
        }