public bool UpdateVerbinding(Verbinding v) { int index = Verbindingen.FindIndex(x => x.Id == v.Id); Verbindingen[index] = v; return(true); }
public void VerbindingenToevoegen(Verbinding verbinding) { Verbindingen.Add(verbinding); }
public long CreateVerbinding(Verbinding v) { Verbindingen.Add(v); return(v.Id); }
public Verbinding GetVerbindingbyId(long id) { Verbinding verbinding = Verbindingen.FirstOrDefault(v => v.Id == id); return(verbinding); }
public bool DeleteVerbinding(long id) { Verbindingen.FirstOrDefault(v => v.Id == id).Actief = false; return(true); }