public ActionResult DeleteConfirmed(int id) { FaultRecoveryLog faultRecoveryLog = db.FaultRecoveryLogs.Find(id); db.FaultRecoveryLogs.Remove(faultRecoveryLog); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "FaultLogID,ProjectID,Date,Login,ErrorID,EventDescription,PartsReplaced,PartNumber,RecoverySteps,Hyperlinks,Results")] FaultRecoveryLog faultRecoveryLog) { if (ModelState.IsValid) { db.Entry(faultRecoveryLog).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.ProjectID = new SelectList(db.Project, "ProjectID", "Name", faultRecoveryLog.ProjectID); return(View(faultRecoveryLog)); }
// GET: FaultRecoveryLogs/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } FaultRecoveryLog faultRecoveryLog = db.FaultRecoveryLogs.Find(id); if (faultRecoveryLog == null) { return(HttpNotFound()); } return(View(faultRecoveryLog)); }
// GET: FaultRecoveryLogs/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } FaultRecoveryLog faultRecoveryLog = db.FaultRecoveryLogs.Find(id); if (faultRecoveryLog == null) { return(HttpNotFound()); } ViewBag.ProjectID = new SelectList(db.Project, "ProjectID", "Name", faultRecoveryLog.ProjectID); return(View(faultRecoveryLog)); }