示例#1
0
        public bool UpdateVerbinding(Verbinding v)
        {
            int index = Verbindingen.FindIndex(x => x.Id == v.Id);

            Verbindingen[index] = v;
            return(true);
        }
示例#2
0
 public void VerbindingenToevoegen(Verbinding verbinding)
 {
     Verbindingen.Add(verbinding);
 }
示例#3
0
 public long CreateVerbinding(Verbinding v)
 {
     Verbindingen.Add(v);
     return(v.Id);
 }
示例#4
0
        public Verbinding GetVerbindingbyId(long id)
        {
            Verbinding verbinding = Verbindingen.FirstOrDefault(v => v.Id == id);

            return(verbinding);
        }
示例#5
0
 public bool DeleteVerbinding(long id)
 {
     Verbindingen.FirstOrDefault(v => v.Id == id).Actief = false;
     return(true);
 }