示例#1
0
        public Product GetProductByCode(string code)
        {
            var pq = new ProductQuery(_context);

            return(pq.GetByCode(code).First());
        }
示例#2
0
        public List <Product> GetAllProducts()
        {
            var pq = new ProductQuery(_context);

            return(pq.GetAll().ToList());
        }