public ActionResult DeleteConfirmed(int id) { TablaT tablat = db.TablaTs.Find(id); db.TablaTs.Remove(tablat); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "id,Periodo,TablaT1,TablaT2,TablaT3,TablaT4,TablaT5,TablaT6")] TablaT tablat) { if (ModelState.IsValid) { db.Entry(tablat).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tablat)); }
public ActionResult Create([Bind(Include = "id,Periodo,TablaT1,TablaT2,TablaT3,TablaT4,TablaT5,TablaT6")] TablaT tablat) { if (ModelState.IsValid) { db.TablaTs.Add(tablat); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tablat)); }
// GET: /TablaT/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TablaT tablat = db.TablaTs.Find(id); if (tablat == null) { return(HttpNotFound()); } return(View(tablat)); }