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