public void insert(Tarea user) { try { db = new AccessData(); db.openConection(); db.insertTask(user); } catch (Exception a) { } finally { db.closeConection(); } }
public DataSet select(string id) { try { db = new AccessData(); db.openConection(); return db.select("select * from tarea where usuario_id ='" + id + "'"); } catch (Exception a) { return null; } finally { db.closeConection(); } }
public void delete(string id) { try { db = new AccessData(); db.openConection(); db.deleteTask("delete from tarea where tarea_id ='" + id + "'"); } catch (Exception a) { } finally { db.closeConection(); } }