public ActionResult DeleteConfirmed(int id) { TablaTT tablatt = db.TablaTTs.Find(id); db.TablaTTs.Remove(tablatt); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "id,Periodo,TablaTT1,TablaTT2,TablaTT3,TablaTT4,TablaTT5,TablaTT6")] TablaTT tablatt) { if (ModelState.IsValid) { db.Entry(tablatt).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tablatt)); }
public ActionResult Create([Bind(Include = "id,Periodo,TablaTT1,TablaTT2,TablaTT3,TablaTT4,TablaTT5,TablaTT6")] TablaTT tablatt) { if (ModelState.IsValid) { db.TablaTTs.Add(tablatt); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tablatt)); }
// GET: /TablaTT/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TablaTT tablatt = db.TablaTTs.Find(id); if (tablatt == null) { return(HttpNotFound()); } return(View(tablatt)); }