示例#1
0
        public ActionResult DeleteConfirmed(int id)
        {
            EHSSVEER eHSSVEER = db.EHSSVEERS.Find(id);

            db.EHSSVEERS.Remove(eHSSVEER);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
示例#2
0
 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));
 }
示例#3
0
        // 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));
        }