public ActionResult DeleteConfirmed(int id) { FSCargoWPData fSCargoWPData = db.FSCargoWPData.Find(id); db.FSCargoWPData.Remove(fSCargoWPData); db.SaveChanges(); return(RedirectToAction("Index")); }
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)); }
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)); }
// 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)); }