public IActionResult Info(int id)
        {
            Party party = partyCollection.GetPartyByID(id);

            if (party == null)
            {
                return(RedirectToAction("Index", "Party"));
            }
            ViewBag.Party = party;
            return(View());
        }
Example #2
0
 public IActionResult AddResult(int electionid, int partyid)
 {
     ViewBag.Election = electionCollection.GetElectionByID(electionid);
     ViewBag.Party    = partyCollection.GetPartyByID(partyid);
     return(View());
 }