Esempio n. 1
0
        public IActionResult DeletePoll(int?pollId)
        {
            if (pollId == null)
            {
                return(NotFound());
            }

            // ADD VALDIATION if pollid incorrect
            _polls.Delete(pollId);

            return(RedirectToAction(nameof(MyPolls)));
        }
Esempio n. 2
0
        public static void DeleteTopicPoll(int pollid)
        {
            IPoll dal = Factory <IPoll> .Create("Poll");

            dal.Delete(GetTopicPoll(pollid));
        }