Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var getResponse = MenuOperation.GetMenuMethod();

            if (getResponse.IsError)
            {
                Response.Write(string.Format("查询菜单发生错误,错误信息为:" + getResponse.ErrInfo.ErrCode + "-" + getResponse.ErrInfo.ErrMsg));
            }
            else
            {
                Response.Write("查询菜单成功");
                var m = getResponse.Menu;
                Response.Write(m.ToJsonString());
            }
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var delResponse = MenuOperation.DeleteMenuMethod();

            if (delResponse.IsError)
            {
                Response.Write(string.Format("删除菜单失败,错误信息为:" + delResponse.ErrInfo.ErrCode + "-" + delResponse.ErrInfo.ErrMsg));
            }
            else
            {
                HttpContext.Current.Response.Write("删除菜单成功");

                MenuOperation.GetMenuMethod(); //成功后查询一下
            }
        }