public ActionResult Add([FromBody] Product product) { var id = this.productRepository.Add(product); NewProductEvent newProductEvent = converter.CommandToEvent(product); eventEmitter.EmitProductAddedEvent(newProductEvent); return(Ok(id)); }
public ActionResult Add([FromBody] Product product) { var id = this.productRepository.Add(product); NewProductEvent newProductEvent = converter.CommandToEvent(product); eventEmitter.EmitProductAddedEvent(newProductEvent); return(Ok(id)); }