public ActionResult Index() { var ogrenci = default(List <TableOgrenciler>); using (var db = new MvcOkulEntities()) { ogrenci = db.TableOgrenciler.ToList(); } return(View(ogrenci)); }
// GET: Default public ActionResult Index() { var dersler = default(List <TableDersler>); using (var db = new MvcOkulEntities()) { dersler = db.TableDersler.ToList(); } return(View(dersler)); }
public ActionResult Index() { var kulup = default(List <TableKulupler>); using (var db = new MvcOkulEntities()) { kulup = db.TableKulupler.ToList(); } return(View(kulup)); }