Exemplo n.º 1
0
        public ActionResult DeleteConfirmed(string id)
        {
            table3 table3 = db.table3.Find(id);

            db.table3.Remove(table3);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        //
        // GET: /table3/Delete/5

        public ActionResult Delete(string id = null)
        {
            table3 table3 = db.table3.Find(id);

            if (table3 == null)
            {
                return(HttpNotFound());
            }
            return(View(table3));
        }
Exemplo n.º 3
0
 public ActionResult Edit(table3 table3)
 {
     if (ModelState.IsValid)
     {
         db.Entry(table3).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(table3));
 }
Exemplo n.º 4
0
        public ActionResult Create(table3 table3)
        {
            if (ModelState.IsValid)
            {
                db.table3.Add(table3);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(table3));
        }