public ActionResult Edit(FoodMenuCategory model)
 {
     if (ModelState.IsValid)
     {
         var modelList = BLLSession.IFoodMenuCategoryService.Modify(model, "RestaurantID", "CName", "IsSale");
         return(JsonMsgOk("编辑菜单成功", "/Admin/FoodMenuCategory"));
     }
     // 如果我们进行到这一步时某个地方出错,则重新显示表单
     return(JsonMsgNoOk());
 }
 public ActionResult Add(FoodMenuCategory model)
 {
     if (ModelState.IsValid)
     {
         model.CreateDate = DateTime.Now;
         model.IsDel      = false;
         model.Version    = 1;
         var modelList = BLLSession.IFoodMenuCategoryService.Add(model);
         return(JsonMsgOk("增加菜单成功", "/Admin/FoodMenuCategory"));
     }
     // 如果我们进行到这一步时某个地方出错,则重新显示表单
     return(JsonMsgNoOk());
 }