Пример #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            EHSSVIRINI eHSSVIRINI = db.EHSSVIRINIS.Find(id);

            db.EHSSVIRINIS.Remove(eHSSVIRINI);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Пример #2
0
 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));
 }
Пример #3
0
        // 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));
        }