public ActionResult DeleteConfirmed(int id) { EHSSVEER eHSSVEER = db.EHSSVEERS.Find(id); db.EHSSVEERS.Remove(eHSSVEER); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,ParameterCategory,Parameter,Today,CurrentWeek,Month,Cummulative,ReportDate,UploadTime,TimeStamp,DayOftheWeek")] EHSSVEER eHSSVEER) { if (ModelState.IsValid) { db.Entry(eHSSVEER).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(eHSSVEER)); }
// GET: EHSSVEERs/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } EHSSVEER eHSSVEER = db.EHSSVEERS.Find(id); if (eHSSVEER == null) { return(HttpNotFound()); } return(View(eHSSVEER)); }