public bool UpdateProduct(ProductDomain product) { RepositoriInMemory.UpdateProduct(product); return(true); }
public ProductDomain GetProduct(int sku) { return(RepositoriInMemory.GetProducts().SingleOrDefault(p => p.Sku == sku)); }
public List <ProductDomain> GetProducts() { return(RepositoriInMemory.GetProducts()); }
public bool DeleteProduct(int sku) { RepositoriInMemory.DeleteProduct(sku); return(true); }