Exemple #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            TablaT tablat = db.TablaTs.Find(id);

            db.TablaTs.Remove(tablat);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
 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));
 }
Exemple #3
0
        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));
        }
Exemple #4
0
        // 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));
        }