public IActionResult DeletePoll(int?pollId) { if (pollId == null) { return(NotFound()); } // ADD VALDIATION if pollid incorrect _polls.Delete(pollId); return(RedirectToAction(nameof(MyPolls))); }
public static void DeleteTopicPoll(int pollid) { IPoll dal = Factory <IPoll> .Create("Poll"); dal.Delete(GetTopicPoll(pollid)); }