Beispiel #1
0
 public Boolean refuser(Participation p)
 {
     try
     {
         int          id    = p.id;
         PLSQL.Pl_SQL plSql = new PLSQL.Pl_SQL();
         string       req   = string.Format(plSql.RefuserDemandeAdherent(id));
         cmd.Connection = cn;
         cn.Open();
         cmd.CommandText = req;
         cmd.ExecuteNonQuery();
         return(true);
     }
     catch (OleDbException)
     {
         return(false);
     }
     finally
     {
         cn.Close();
     }
 }