public ActionResult DeleteConfirmed(string id) { AdminFeedbackForm adminFeedbackForm = db.AdminFeedbackForms.Find(id); db.AdminFeedbackForms.Remove(adminFeedbackForm); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Ques1,UserId")] AdminFeedbackForm adminFeedbackForm) { if (ModelState.IsValid) { db.Entry(adminFeedbackForm).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(adminFeedbackForm)); }
public ActionResult Create([Bind(Include = "Ques1,UserId")] AdminFeedbackForm adminFeedbackForm) { if (ModelState.IsValid) { db.AdminFeedbackForms.Add(adminFeedbackForm); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(adminFeedbackForm)); }
// GET: AdminFeedbackForms/Delete/5 public ActionResult Delete(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } AdminFeedbackForm adminFeedbackForm = db.AdminFeedbackForms.Find(id); if (adminFeedbackForm == null) { return(HttpNotFound()); } return(View(adminFeedbackForm)); }