public IActionResult NewDish()
        {
            CnDViewModel NewDishVM = new CnDViewModel()
            {
                ChefList = dbContext.Chefs.ToList()
            };

            return(View(NewDishVM));
        }
 public IActionResult AddDish(CnDViewModel modelData)
 {
     if (ModelState.IsValid)
     {
         Dish newDish = modelData.VMDish;
         dbContext.Add(newDish);
         dbContext.SaveChanges();
         return(RedirectToAction("Index"));
     }
     else
     {
         CnDViewModel NewDishVM = new CnDViewModel()
         {
             ChefList = dbContext.Chefs.ToList()
         };
         return(View("NewDish", NewDishVM));
     }
 }