public ActionResult Create([Bind(Include = "id,name")] Models.Type type) { if (ModelState.IsValid) { db.Types.Add(type); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(type)); }