protected void Page_Load(object sender, EventArgs e)
        {
            var createResponse = MenuOperation.CreateMenuMethod();

            if (createResponse.IsError)
            {
                Response.Write(string.Format("创建菜单失败,错误信息为:" + createResponse.ErrInfo.ErrCode + "-" + createResponse.ErrInfo.ErrMsg));
            }
            else
            {
                Response.Write("创建菜单成功");
            }
        }
Example #2
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());
            }
        }
Example #3
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(); //成功后查询一下
            }
        }