public ActionResult EditPoll(int id, Poll poll)
 {
     DBNLDataContext db = new DBNLDataContext();
     Poll updPoll = db.Polls.Where(p => p.Id == id).SingleOrDefault();
     updPoll.PollName = poll.PollName;
     updPoll.Status = poll.Status;
     db.SubmitChanges();
     return RedirectToAction("ListPolls");
 }
 public ActionResult DeletePoll(Poll poll)
 {
     DBNLDataContext db = new DBNLDataContext();
     db.Polls.DeleteOnSubmit(poll);
     db.SubmitChanges();
     return RedirectToAction("ListPolls");
 }
 partial void UpdatePoll(Poll instance);
 partial void DeletePoll(Poll instance);
 partial void InsertPoll(Poll instance);