private void GetMesCategoryInfo(HttpContext context) { var Id = Guid.Empty; Guid.TryParse(context.Request.Form["Id"], out Id); if (Id.Equals(Guid.Empty)) { context.Response.Write(ResResult.ResJsonString(false, MC.Request_Params_InvalidError, "")); return; } var bll = new MesCategory(); var oldInfo = bll.GetModel(Id); if (oldInfo == null) { context.Response.Write(ResResult.ResJsonString(false, MC.Data_NotExist, "")); return; } context.Response.Write(ResResult.ResJsonString(true, "", JsonConvert.SerializeObject(oldInfo))); }
private void GetMesCategoryTree(HttpContext context) { var bll = new MesCategory(); context.Response.Write(ResResult.ResJsonString(true, "", bll.GetTreeJson())); }