public Product Save(Product product) { using (IProductWriter writer = _productCommunicatorAbstractFactory.CreateProductWriter()) { return(writer.Save(product)); } }
public Product AddProduct(Product product) { using IProductWriter productWriter = _productCommunicatorAbstractFactory.CreateProductWriter(); return(productWriter.AddProduct(product)); }