public ActionResult DeleteConfirmed(int id) { FunctionalTestingLog functionalTestingLog = db.FunctionalTestingLogs.Find(id); db.FunctionalTestingLogs.Remove(functionalTestingLog); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "FunctionalTestingLogID,ProjectID,Login,Date,TestName,CurrentStateProblemDescription,ProposedSolution,ChangesMadeDuringTest,Observations,RecommendedChanges,ChangeApproved,Hyperlinks,Results")] FunctionalTestingLog functionalTestingLog) { if (ModelState.IsValid) { db.Entry(functionalTestingLog).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.ProjectID = new SelectList(db.Project, "ProjectID", "Name", functionalTestingLog.ProjectID); return(View(functionalTestingLog)); }
// GET: FunctionalTestingLogs/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } FunctionalTestingLog functionalTestingLog = db.FunctionalTestingLogs.Find(id); if (functionalTestingLog == null) { return(HttpNotFound()); } return(View(functionalTestingLog)); }
// GET: FunctionalTestingLogs/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } FunctionalTestingLog functionalTestingLog = db.FunctionalTestingLogs.Find(id); if (functionalTestingLog == null) { return(HttpNotFound()); } ViewBag.ProjectID = new SelectList(db.Project, "ProjectID", "Name", functionalTestingLog.ProjectID); return(View(functionalTestingLog)); }