Ejemplo n.º 1
0
 public ActionResult FinishCongressVoting(DebugFinishCongressVotingViewModel vm, string whatToDo)
 {
     if (ModelState.IsValid)
     {
         var voting = congressVotingRepository.GetById(vm.VotingID);
         if (whatToDo == "accept")
         {
             congressVotingService.FinishVoting(voting);
         }
         else
         {
             congressVotingService.RejectVoting(voting, CongressVotingRejectionReasonEnum.NotEnoughVotes);
         }
     }
     return(View(vm));
 }
Ejemplo n.º 2
0
        public ActionResult FinishCongressVoting()
        {
            var vm = new DebugFinishCongressVotingViewModel();

            return(View(vm));
        }