public ActionResult Edit([Bind(Include = "id,name")] Models.Type type) { if (ModelState.IsValid) { db.Entry(type).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(type)); }