예제 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            bajaVarios bajaVarios = db.bajaVarios.Find(id);

            db.bajaVarios.Remove(bajaVarios);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
예제 #2
0
 public ActionResult Edit([Bind(Include = "SECUENCIAL,TIPO,RESPONSABLE,CODIGOINTERNO")] bajaVarios bajaVarios)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bajaVarios).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(bajaVarios));
 }
예제 #3
0
        public ActionResult Create([Bind(Include = "SECUENCIAL,TIPO,RESPONSABLE,CODIGOINTERNO")] bajaVarios bajaVarios)
        {
            if (ModelState.IsValid)
            {
                db.bajaVarios.Add(bajaVarios);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(bajaVarios));
        }
예제 #4
0
        // GET: bajaVarios/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            bajaVarios bajaVarios = db.bajaVarios.Find(id);

            if (bajaVarios == null)
            {
                return(HttpNotFound());
            }
            return(View(bajaVarios));
        }