Exemple #1
0
 private void Upd_Disable_ByCode_ByIDLang(HttpContext context)
 {
     String jSonString = "";
     try {
         AlbumsBO albumsBO = new AlbumsBO();
         string code = Convert.ToString(context.Request.QueryString["Code"]);
         int idLang = Convert.ToInt32(context.Request.QueryString["IDLang"]);
         bool disable = Convert.ToBoolean(context.Request.QueryString["Disable"]);
         int ret = albumsBO.Upd_Disable_ByCode_ByIDLang(code, idLang, disable);
         if (ret == 0) jSonString = "{\"status\":\"error|" + ret + "\"}";
         if (ret != 0) jSonString = "{\"status\": \"success\"}";
     }
     catch (Exception ex) {
         jSonString = "{\"status\":\"error\" ,\"message\":\"" + ex.Message + "\"}";
     }
     finally {
         context.Response.Write(jSonString);
     }
 }