public ActionResult DeleteConfirmed(int id)
        {
            ChildPokemon childPokemons = db.ChildPokemon.Find(id);

            db.ChildPokemon.Remove(childPokemons);
            db.SaveChanges();
            return(RedirectToAction("../ParentPokemon/Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,Name,ParentID,Categorie,Waarde,Prijs,Type,Number,Status")] ChildPokemon childPokemons)
 {
     if (ModelState.IsValid)
     {
         db.Entry(childPokemons).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("../ParentPokemon/Index"));
     }
     ViewBag.ParentID = new SelectList(db.ParentPokemon, "ID", "Name", childPokemons.ParentID);
     return(View(childPokemons));
 }
        // GET: ChildPokemon/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ChildPokemon childPokemons = db.ChildPokemon.Find(id);

            if (childPokemons == null)
            {
                return(HttpNotFound());
            }
            return(View(childPokemons));
        }
        public ActionResult Akkorderen(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ChildPokemon childPokemons = db.ChildPokemon.Find(id);

            if (childPokemons == null)
            {
                return(HttpNotFound());
            }
            ViewBag.ParentID = new SelectList(db.ParentPokemon, "ID", "Name", childPokemons.ParentID);
            return(View(childPokemons));
        }