public Product GetProductByCode(string code) { var pq = new ProductQuery(_context); return(pq.GetByCode(code).First()); }
public List <Product> GetAllProducts() { var pq = new ProductQuery(_context); return(pq.GetAll().ToList()); }