public async Task <IActionResult> ProductList()
        {
            //List<Product> prodList = new List<Product>();

            //var productQry = await _context.Product.ToListAsync();

            //foreach (var prod in productQry)
            //{
            //    prodList.Add(new Product
            //    {
            //        Id = prod.Id,
            //        Name = prod.Name,
            //        Qty = prod.Qty,
            //        Price = prod.Price,
            //        Category = prod.Category

            //    });
            //}
            //return View(prodList.OrderByDescending(d => d.Id).ToList());
            return(View(await _detailService.GetAllProductDetails()));
        }
        // GET: ProductDetail
        public IActionResult Index()
        {
            List <ProductDetail> productDetails = service.GetAllProductDetails();

            return(View(productDetails));
        }