示例#1
0
        public IActionResult GetProductList()
        {
            ProductQuery _lQuery = new ProductQuery();
            var          list    = _lQuery.GetProductList();

            if (list != null)
            {
                return(Ok(list));
            }
            else
            {
                return(BadRequest());
            }
        }