Пример #1
0
        public ActionResult Edit(int? id, int PollId, int WorkId, string IPAddress, DateTime TimeVoted)
        {
            PollVoteBl pollVote = new PollVoteBl();
            int _id = id != null ? int.Parse(id.ToString()) : 0;
            PollVote _pollVote = pollVote.Save(_id, PollId, WorkId, IPAddress, TimeVoted);

            return RedirectToAction("edit", "pollvote", new { id = _pollVote.Id });
        }
Пример #2
0
 public ActionResult Delete(int? id)
 {
     PollVoteBl team = new PollVoteBl();
     if (id != null)
     {
         team.Delete(int.Parse(id.ToString()));
     }
     return RedirectToAction("index");
 }