public ActionResult DeleteConfirmed(int id) { RAANNotification rAANNotification = db.RAANNotifications.Find(id); db.RAANNotifications.Remove(rAANNotification); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "ID,SchoolOffice,DistrictOffice,Teachers,AthleticDirector,Widget,SmartPhoneApp,READ,FlagRelying")] RAANNotification rAANNotification) { if (ModelState.IsValid) { db.Entry(rAANNotification).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(rAANNotification)); }
// GET: RAANNotifications/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } RAANNotification rAANNotification = db.RAANNotifications.Find(id); if (rAANNotification == null) { return(HttpNotFound()); } return(View(rAANNotification)); }