    [ActionName("Order")]
        public async Task<IActionResult> Order()
        {
            string[] name = { "Bhrugen","Ben","Jess","Laura","Ron" };
            string[] itemName = { "Food1","Food2","Food3","Food4","Food5" };

            Random rand = new Random();
            // Generate a random index less than the size of the array.  
            int index = rand.Next(name.Length);

            Order order = new Order()
            {
                Name = name[index],
                ItemName = itemName[index],
                Count=index
            };

            return View(order);
        }

        [ActionName("Order")]
        [HttpPost]
        public async Task<IActionResult> OrderPost(Order order)
        {
           
            _context.Orders.Add(order);
            _context.SaveChanges();
            return RedirectToAction(nameof(Order));
        }
	  [ActionName("OrderList")]
        public async Task<IActionResult> OrderList()
        {
            return View();
        }
	 [HttpGet]
        public IActionResult GetAllOrder()
        {
            var productList = _context.Orders.ToList();
            return Json(new { data = productList });
        }