public ActionResult Edit([Bind(Include = "ID,Category,Name,Datasheeturl,Amount,Price")] Component component) { if (ModelState.IsValid) { db.Entry(component).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(component)); }