public void Sel_ByCodeCategoryLevel2(HttpContext context, int IDLang) { ConfigsBO aConfigsBO = new ConfigsBO(); String jSonString = ""; string CodeCategoryLevel2 = ""; CodeCategoryLevel2 = context.Request.QueryString["CodeCat2"]; CategoryLevel1BO aCategoryLevel1BO = new CategoryLevel1BO(); //List<CategoryLevel1> obj = aCategoryLevel1BO.Sel_ByIDLang(IDLang).Where(p => !p.CodeCategoryLevel2.Contains(CodeCategoryLevel2)).ToList<CategoryLevel1>(); List<vw_CategoryLevel1ViewAll> obj = aCategoryLevel1BO.Sel_Ext_ByCodeCategoryLevel2(CodeCategoryLevel2).ToList(); if (obj != null) { _converter.DateTimeFormat = "dd/MM/yyyy"; jSonString = JsonConvert.SerializeObject(obj, _converter); } jSonString = "{\"CategoryLevel1s\":" + jSonString + "}"; context.Response.Write(jSonString); }