public void HatEkle() { Hat hat = Onyukleyici.bul <Hat>(); hat.HatAdi = "79K"; _hatRepository.kaydetGuncelle(hat); }
public void GuzergahliHatEkle() { Hat hat = Onyukleyici.bul <Hat>(); hat.HatAdi = "79K"; var durak = _durakRepository.isimIleBul("elmas"); if (durak == null) { Console.WriteLine("Durak bulunamadı!"); return; } Console.WriteLine(durak.ID + " " + durak.Ad); hat.guzergahEkle(durak, 2); _hatRepository.kaydetGuncelle(hat); }
private Durak yeniDurak() { return(Onyukleyici.bul <Durak>()); }