public ActionResult DeleteConfirmed(int id) { FSOSummary fSOSummary = db.FSOSummaries.Find(id); db.FSOSummaries.Remove(fSOSummary); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,Report,ReportDate,UploadTime,TimeStamp,DayOftheWeek")] FSOSummary fSOSummary) { if (ModelState.IsValid) { db.Entry(fSOSummary).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(fSOSummary)); }
public ActionResult Create([Bind(Include = "Id,Report,ReportDate,UploadTime,TimeStamp,DayOftheWeek")] FSOSummary fSOSummary) { if (ModelState.IsValid) { db.FSOSummaries.Add(fSOSummary); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(fSOSummary)); }
// GET: FSOSummaries/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } FSOSummary fSOSummary = db.FSOSummaries.Find(id); if (fSOSummary == null) { return(HttpNotFound()); } return(View(fSOSummary)); }