//页面跳转
 public ActionResult Index(int?categoryId)
 {
     ViewBag.DishesList = manager.GetAllDishes(categoryId);
     if (Request.IsAjaxRequest())
     {
         return(PartialView("DishesList", ViewBag.DishesList));//返回分布视图,异步刷新查询界面
     }
     return(View());
 }
 //菜品展示
 public ActionResult Index(int?categoryId)
 {
     ViewBag.DishesList = manager.GetAllDishes(categoryId);
     return(View());
 }