public async Task <IActionResult> Edit(int id, [Bind("RankId,PollName,IsPublic,NumberOfChoices,JSONChoices,PollingStatus,PollStartDate,PollCompletionDate,MakerId")] RankPoll rankPoll)
        {
            if (id != rankPoll.RankId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(rankPoll);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!RankPollExists(rankPoll.RankId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(rankPoll));
        }
        public async Task <IActionResult> Create([Bind("RankId,PollName,IsPublic,NumberOfChoices,JSONChoices,PollingStatus,PollStartDate,PollCompletionDate,MakerId")] RankPoll rankPoll)
        {
            if (ModelState.IsValid)
            {
                _context.Add(rankPoll);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(rankPoll));
        }