public ActionResult Edit(int id, Part_Returner part)
 {
     Part toEdit = null;
     try
     {
         part.CreatePart(ref toEdit);
         db.Edit(toEdit);
         return RedirectToAction("Index");
     }
     catch
     {
         return View(toEdit);
     }
 }
 public ActionResult Create(Part_Returner part)
 {
     Part toCreate = null;
     try
     {
         // TODO: Add insert logic here
         part.CreatePart(ref toCreate);
         db.Create(toCreate);
         return RedirectToAction("Index");
     }
     catch
     {
         return View(toCreate);
     }
 }