public ActionResult DeleteConfirmed(int id)
        {
            OPinfo opinfo = db.OPinfoes.Find(id);

            db.OPinfoes.Remove(opinfo);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
        //
        // GET: /Pokemon/Delete/5

        public ActionResult Delete(int id = 0)
        {
            OPinfo opinfo = db.OPinfoes.Find(id);

            if (opinfo == null)
            {
                return(HttpNotFound());
            }
            return(View(opinfo));
        }
 public ActionResult Edit(OPinfo opinfo)
 {
     if (ModelState.IsValid)
     {
         db.Entry(opinfo).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(opinfo));
 }
        public ActionResult Create(OPinfo opinfo)
        {
            if (ModelState.IsValid)
            {
                db.OPinfoes.Add(opinfo);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(opinfo);
        }
        public ActionResult Create(OPinfo opinfo)
        {
            if (ModelState.IsValid)
            {
                db.OPinfoes.Add(opinfo);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(opinfo));
        }
 public ActionResult Edit(OPinfo opinfo)
 {
     if (ModelState.IsValid)
     {
         db.Entry(opinfo).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(opinfo);
 }