Пример #1
0
        public ActionResult Index()
        {
            var ogrenci = default(List <TableOgrenciler>);

            using (var db = new MvcOkulEntities())
            {
                ogrenci = db.TableOgrenciler.ToList();
            }
            return(View(ogrenci));
        }
Пример #2
0
        // GET: Default
        public ActionResult Index()
        {
            var dersler = default(List <TableDersler>);

            using (var db = new MvcOkulEntities())
            {
                dersler = db.TableDersler.ToList();
            }
            return(View(dersler));
        }
Пример #3
0
        public ActionResult Index()
        {
            var kulup = default(List <TableKulupler>);

            using (var db = new MvcOkulEntities())
            {
                kulup = db.TableKulupler.ToList();
            }
            return(View(kulup));
        }