public IResult <Product> Update(Product entity) { var product = _productRepository.Update(entity); rabbitMQ.Post(product); return(new Result <Product>(200, product)); }
public Product Update(Product entity) { var product = _productRepository.Update(entity); rabbitMQ.Post(product); return(product); }