private void Sel_ByStatus_ByIDLang(HttpContext context) { String jSonString = string.Empty; AlbumsBO albumsBO = new AlbumsBO(); int idLang = string.IsNullOrEmpty(context.Request.QueryString["IDLang"]) ? CORE_Language.sys_CUR_LANG : int.Parse(context.Request.QueryString["IDLang"]); int status = Convert.ToInt32(context.Request.QueryString["Status"]); bool disable = !String.IsNullOrEmpty(context.Request.QueryString["Disable"]) ? Convert.ToBoolean(context.Request.QueryString["Disable"]) : false; List<Albums> listAlbums = String.IsNullOrEmpty(Convert.ToString(context.Request.QueryString["Disable"])) ? albumsBO.Sel_ByStatus_ByIDLang(status, idLang) : albumsBO.Sel_ByStatus_ByIDLang(status, idLang, disable); if (listAlbums.Any()) { _converter.DateTimeFormat = "dd/MM/yyyy"; jSonString = JsonConvert.SerializeObject(listAlbums, _converter); } jSonString = "{\"data\":" + jSonString + "}"; context.Response.Write(jSonString); }