コード例 #1
0
 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));
 }