/// <summary>
 /// 编辑公众号菜单
 /// </summary>
 /// <param name="WeChatMenu"></param>
 /// <returns></returns>
 public override int Update(ES_WeChatMenu WeChatMenu)
 {
     using (var Context = new Entities())
     {
         Context.Update <ES_WeChatMenu>(WeChatMenu);
         return(Context.SaveExtendChanges());
     }
 }
 /// <summary>
 /// 添加公众号菜单
 /// </summary>
 /// <param name="WeChatMenu"></param>
 /// <returns></returns>
 public override int Insert(ES_WeChatMenu WeChatMenu)
 {
     using (var Context = new Entities())
     {
         WeChatMenu.ID          = GuidHelper.NewGuid();
         WeChatMenu.dInsertTime = DateTime.Now;
         WeChatMenu.bIsDeleted  = false;
         Context.Insert <ES_WeChatMenu>(WeChatMenu);
         return(Context.SaveExtendChanges());
     }
 }
 /// <summary>
 /// 编辑微信公众号菜单
 /// </summary>
 /// <param name="WeChatMenu"></param>
 /// <returns></returns>
 public ActionResult Edit(ES_WeChatMenu WeChatMenu)
 {
     if (Request.HttpMethod.ToUpper() == MethodType.GET)
     {
         return(View(Manager.Get(WeChatMenu.ID)));
     }
     else
     {
         if (Manager.Update(WeChatMenu) > 0)
         {
             result.success = true;
         }
         return(Json(result));
     }
 }
 /// <summary>
 /// 添加微信公众号菜单
 /// </summary>
 /// <param name="WeChatMenu"></param>
 /// <returns></returns>
 public ActionResult Add(ES_WeChatMenu WeChatMenu)
 {
     if (Request.HttpMethod.ToUpper() == MethodType.GET)
     {
         return(View());
     }
     else
     {
         if (Manager.Insert(WeChatMenu) > 0)
         {
             result.success = true;
         }
         return(Json(result));
     }
 }
 /// <summary>
 /// 编辑公众号菜单
 /// </summary>
 /// <param name="WeChatMenu"></param>
 /// <returns></returns>
 public abstract int Update(ES_WeChatMenu WeChatMenu);
 /// <summary>
 /// 添加公众号菜单
 /// </summary>
 /// <param name="WeChatMenu"></param>
 /// <returns></returns>
 public abstract int Insert(ES_WeChatMenu WeChatMenu);