Ejemplo n.º 1
0
        public IActionResult OkulListe()
        {
            var model = new OkulModel
            {
                OkulListe = _okulBll.OkulListe(null).ToList()
            };

            return(View(model));
        }
Ejemplo n.º 2
0
        public IActionResult OgrenciListe(int OkulId = 0, bool Durum = true)
        {
            var val = _tahakkukDetayBll.TahakkukDetayGetir("aaaa-aaaa").ToList();

            var query = _ogrenciBll.OgrenciListe(null).Where(x => x.Durum == Durum);

            if (OkulId != 0)
            {
                query = query.Where(x => x.OkulId == OkulId);
            }


            var model = new OgrenciModel
            {
                OkulId             = 0,
                OkulListesi        = _okulBll.OkulListe(null).ToList(),
                OgreciBolgeListesi = _ogrenciBolgeBll.OgrenciBolgeListe(null).ToList(),
                OgrenciListesi     = query.ToList()
            };

            return(View(model));
        }