public void InsertOrUpdate(Student student)
        {
            if (student.Id == default(int))
            {

            }
        }
        public ActionResult Edit(Student student)
        {
            if (ModelState.IsValid)
            {
                // db.Students.Add(student);
                // db.SaveChanges();
                // for edit not create - do as exercise!
                db.Entry(student).State = EntityState.Modified;
                db.SaveChanges();
                //return View("Thanks");
                return RedirectToAction("Index");
            }

            return View();
            
        }
        public ActionResult Create(Student student)
        {
            if (ModelState.IsValid)
            {
                ViewBag.Name = student.Name;
                ViewBag.LastName = student.LastName;
                ViewBag.Email = student.Email;


                // for edit not create - do as exercise!
                // db.Entry(student).State = System.Data.Entity.EntityState.Modified;

                db.Students.Add(student);
                db.SaveChanges();

                return View("Thanks"); // Calls the View "Thanks"
            }
            else
            {
                return View(); // call the same view if validation problem occours
            }
           
        }