public void SetStatus(long productId, EStatusProduct statusProduct) { if (statusProduct == EStatusProduct.NoValid) { _sqlConnection.Execute("Update Product Set Valid = 0 Where Id = @Id", new { @Id = productId }); } }
public void SetStatusProduct(long productId, EStatusProduct newStatus) { _productRepository.SetStatus(productId, newStatus); _productWebService.PushMqToRedisProduct(productId); _productWebService.PushMqToSoldProduct(productId); }