Beispiel #1
0
        // GET: Kullanici
        public ActionResult Index()
        {
            //polimorfism
            List <Kullanici> listem = new KullaniciListesi();

            return(View(listem));
        }
Beispiel #2
0
        public ActionResult Detay(int id)
        {
            List <Kullanici> aranacakListe = new KullaniciListesi();
            //where sorgusu listelenebilir formatta data döner
            //aranacakListe.Where(x => x.Id == id).First();
            //LINQ Sorgusu
            //Lambda Expression
            Kullanici arananKisi = aranacakListe.Find(x => x.Id == id);

            return(View(arananKisi));
        }