Exemplo n.º 1
0
        public ActionResult StudentEdit(Student st, int[] selectedCourses)
        {
            UniverContext uc = new UniverContext();

            uc.Entry(st).State = EntityState.Modified;
            uc.SaveChanges();

            return RedirectToAction("StudentDetails",new { id = st.Id});
        }