public ActionResult Create([Bind(Include = "Name,Password,Gender,Major,EntranceDate")] Student student) { if (ModelState.IsValid) { if (db.GetItemByName(student.Name) == null) { db.Careate(student); return RedirectToAction("Index"); } } return View(student); }