Example #1
0
        // GET: Product/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var productViewModel = await _ds.SingleAsync(id);

            if (productViewModel == null)
            {
                return(NotFound());
            }

            return(View(productViewModel));
        }