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

            Verbindingen[index] = v;
            return(true);
        }
예제 #2
0
파일: Traject.cs 프로젝트: wang900/S2_Trein
 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);
 }