public ActionResult DeleteConfirmed(int id)
        {
            InfanteriaBasica infanteriaBasica = db.InfanteriaBasicas.Find(id);

            db.InfanteriaBasicas.Remove(infanteriaBasica);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,Nombre,Precio,Valor,PotenciaFuego,Movimiento")] InfanteriaBasica infanteriaBasica)
 {
     if (ModelState.IsValid)
     {
         db.Entry(infanteriaBasica).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(infanteriaBasica));
 }
        public ActionResult Create([Bind(Include = "ID,Nombre,Precio,Valor,PotenciaFuego,Movimiento")] InfanteriaBasica infanteriaBasica)
        {
            if (ModelState.IsValid)
            {
                db.InfanteriaBasicas.Add(infanteriaBasica);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(infanteriaBasica));
        }
        // GET: InfanteriaBasica/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            InfanteriaBasica infanteriaBasica = db.InfanteriaBasicas.Find(id);

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