public ActionResult Edit(/*[Bind(Include = "TeacherId,FirstName,MiddleName,LastName")]*/ TeacherViewModel teacherViewModel)
 {
     if (ModelState.IsValid)
     {
         var teacher = teacherViewModel.ToTeacher(db);
         db.Entry(teacher).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(teacherViewModel));
 }
        public ActionResult Create(/*[Bind(Include = "TeacherId,FirstName,MiddleName,LastName")]*/ TeacherViewModel teacherViewModel)
        {
            if (ModelState.IsValid)
            {
                var teacher = teacherViewModel.ToTeacher(db);
                db.Teachers.Add(teacher);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(teacherViewModel));
        }