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