//[HttpGet] //public ActionResult Delete(int? id, bool? saveChangesError = false) //{ // if (id == null) // { // return new HttpStatusCodeResult(HttpStatusCode.BadRequest); // } // if (saveChangesError.GetValueOrDefault()) // { // ViewBag.ErrorMessage = "Delete failed. Try again, and if the problem persists, contact your system administrator."; // } // Poll poll = _poll.DisplayPoll(id); // if (poll == null) // { // return HttpNotFound(); // } // return View(poll); //} //[HttpPost] //[ValidateAntiForgeryToken] //public ActionResult Delete(int id) //{ // try // { // Poll poll = _poll.DisplayPoll(id); // _poll. // } //} //[HttpGet] //public ActionResult Edit() //{ // if (model != null) // { // var detail = _poll.GetPoll(int pollId); // } // return View(model); //} //[HttpPost] //[ValidateAntiForgeryToken] //public ActionResult Edit([Bind(Include = "Idea, DateCreated")]Poll poll) //{ // try // { // if (ModelState.IsValid) // { // var edit = _poll.GetPoll. // } // } //} public ActionResult Details(int id) { var model = _poll.DisplayPoll(id); return(View(model)); }