Esempio n. 1
0
        //Get VotingCard to input VotingCard (from shareholders' Voting Card)
        public JsonResult GetVotingCard(int id)
        {
            var votingCard = _votingCardSvc.GetVotingCard(id);

            //For json serialization
            if (votingCard == null)
            {
                return(Json(null, JsonRequestBehavior.AllowGet));
            }

            var votingCardDto = VotingCardHelper.ToVotingCardDto(votingCard);

            return(Json(votingCardDto, JsonRequestBehavior.AllowGet));
        }