Пример #1
0
        public IActionResult GetProductData(int ProductId)
        {
            ProductQuery _lQuery = new ProductQuery();
            var          list    = _lQuery.GetProduct(ProductId);

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