Esempio n. 1
0
        public void delmenu(System.Web.HttpContext context)
        {
            context.Response.ContentType = "application/json";
            string s      = "{\"status\":\"1\"}";
            int    menuId = 0;

            if (!int.TryParse(context.Request["MenuId"], out menuId))
            {
                return;
            }
            if (VShopHelper.DeleteFuwuMenu(menuId))
            {
                s = "{\"status\":\"0\"}";
            }
            context.Response.Write(s);
        }
Esempio n. 2
0
        public void delmenu(HttpContext context)
        {
            context.Response.ContentType = "application/json";
            string s      = "{\"status\":\"1\"}";
            int    result = 0;

            if (!int.TryParse(context.Request["MenuId"], out result))
            {
                s = "{\"status\":\"1\"}";
            }
            else
            {
                if (VShopHelper.DeleteFuwuMenu(result))
                {
                    s = "{\"status\":\"0\"}";
                }
                context.Response.Write(s);
            }
        }