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