public DataTable getCapa(DateTime d, int rit)
 {
     try
     {
         DAO = new CapaciteitDAO();
         return DAO.getCapa(d, rit).Tables[0];
     }
     catch (NullReferenceException ex)
     {
         return null;
     }
 }
 public int updateCapa(CapaciteitData t)
 {
     DAO = new CapaciteitDAO();
     return DAO.updateCapa(t);
 }
 public int addCapa(CapaciteitData t)
 {
     DAO = new CapaciteitDAO();
     return DAO.addCapa(t);
 }