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

            db.FSCargoWPData.Remove(fSCargoWPData);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Пример #2
0
 public ActionResult Edit([Bind(Include = "Id,Parameters,ParameterValue,ParameterUnit,ReportDate,UploadTime,TimeStamp,DayOftheWeek")] FSCargoWPData fSCargoWPData)
 {
     if (ModelState.IsValid)
     {
         db.Entry(fSCargoWPData).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(fSCargoWPData));
 }
Пример #3
0
        public ActionResult Create([Bind(Include = "Id,Parameters,ParameterValue,ParameterUnit,ReportDate,UploadTime,TimeStamp,DayOftheWeek")] FSCargoWPData fSCargoWPData)
        {
            if (ModelState.IsValid)
            {
                db.FSCargoWPData.Add(fSCargoWPData);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(fSCargoWPData));
        }
Пример #4
0
        // GET: FSCargoWPDatas/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            FSCargoWPData fSCargoWPData = db.FSCargoWPData.Find(id);

            if (fSCargoWPData == null)
            {
                return(HttpNotFound());
            }
            return(View(fSCargoWPData));
        }