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