示例#1
0
        protected void GetBtn_Click(object sender, EventArgs e)
        {
            IMenuApi menuapi = new MenuApi();
            MenuJson MJ      = menuapi.GetMenu(token);

            lblMsg.Text = MJ.ToJson();
        }
示例#2
0
        private void btnGetMenuJson_Click(object sender, EventArgs e)
        {
            IMenuApi menuBLL = new MenuApi();
            MenuJson menu    = menuBLL.GetMenu(token);

            if (menu != null)
            {
                Console.WriteLine(menu.ToJson());
            }
        }