public IActionResult AddPoll(AddPollViewModel poll)
 {
     if (ModelState.IsValid)
     {
         if (_pollManager.AddPoll(poll))
         {
             ViewBag.Message = "Poll added successfully!";
             ASPNETCoreSignalRDemo.Hubs.PollHub.FetchPoll();
         }
     }
     return(View(poll));
 }
        public IActionResult AddPoll(AddPollViewModel poll)
        {
            if (ModelState.IsValid)
            {
                if (_pollManager.AddPoll(poll))
                {
                    ViewBag.Message = "Poll added successfully!";

                    _hubContext.Clients.All.SendAsync("PollItem");
                    _hubContext.Clients.All.SendAsync("GetVoteResults");
                }
            }
            return(View(poll));
        }