Beispiel #1
0
        public IActionResult Index()
        {
            var model = new DisplayIndexViewModel
            {
                Members       = _member.GetAllMembers(true),
                Session       = _session.GetActiveSession(),
                Ballot        = _ballot.GetActiveOrLast(),
                Votes         = _vote.GetAll(_ballot.GetActiveOrLast()),
                MembersBySeat = _seatService.MembersBySeat(),
                BallotId      = _ballot.GetBallotsThisSession(_session.GetActiveSession())
            };

            return(View(model));
        }
Beispiel #2
0
 //GET: Display
 //@see Views/Display/index.cstml
 public IActionResult Index()
 {
     return(View(DisplayIndexViewModel.From(_prizeDataAccessor.Get())));
 }