Beispiel #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            FaultRecoveryLog faultRecoveryLog = db.FaultRecoveryLogs.Find(id);

            db.FaultRecoveryLogs.Remove(faultRecoveryLog);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 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));
 }
Beispiel #3
0
        // 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));
        }
Beispiel #4
0
        // 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));
        }