Beispiel #1
0
        public void HatEkle()
        {
            Hat hat = Onyukleyici.bul <Hat>();

            hat.HatAdi = "79K";

            _hatRepository.kaydetGuncelle(hat);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 private Durak yeniDurak()
 {
     return(Onyukleyici.bul <Durak>());
 }