Exemplo n.º 1
0
        // GET: Student
        public ActionResult Index()
        {
            StdentDB dbhandle = new StdentDB();

            ModelState.Clear();
            return(View(dbhandle.GetStudent()));
        }
Exemplo n.º 2
0
        // GET: Student/Edit/5
        public ActionResult Edit(int id)
        {
            StdentDB sdb = new StdentDB();

            return(View(sdb.GetStudent().Find(smodel => smodel.Id == id)));
        }