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