Example #1
0
        public async Task <IActionResult> Get(string productName)
        {
            var details = await _productDetailService.GetAsync(productName);

            if (details == null)
            {
                return(NoContent());
            }

            return(Json(details));
        }