예제 #1
0
        public ActionResult AddTeacher([Bind(Exclude = "ID")] Teacher teach, int kafedraid)
        {
            Teacher teacher = teach;

            teacher.kafedraId = kafedraid;
            if (tDAO.add(teach))
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                return(View("AddTeacher"));
            }
        }