public ActionResult DeleteConfirmed(int id) { pokkkk pokkkk = db.pokkkks.Find(id); db.pokkkks.Remove(pokkkk); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,name,age")] pokkkk pokkkk) { if (ModelState.IsValid) { db.Entry(pokkkk).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pokkkk)); }
public ActionResult Create([Bind(Include = "Id,name,age")] pokkkk pokkkk) { if (ModelState.IsValid) { db.pokkkks.Add(pokkkk); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pokkkk)); }
// GET: pokkkks/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } pokkkk pokkkk = db.pokkkks.Find(id); if (pokkkk == null) { return(HttpNotFound()); } return(View(pokkkk)); }