Example #1
0
 public JsonResult Delete(int id)
 {
     try
     {
         tb_database_config_dal dal = new tb_database_config_dal();
         using (DbConn PubConn = DbConfig.CreateConn(Config.PlatformManageConnectString))
         {
             PubConn.Open();
             dal.Delete(PubConn, id);
             return(Json(new { code = 1, msg = "Success" }));
         }
     }
     catch (Exception ex)
     {
         return(Json(new { code = -1, msg = ex.Message }));
     }
 }