示例#1
0
        public static PollModel Load(int pollId)
        {
            var model = new PollModel
            {
                PollDetails = CreatePollDTO(pollId),
                PollOptions = CreatePollOptionDTOs(pollId)
            };

            // ovo ce da zatvori glasanje ako mu je proslo vreme
            model = CheckUpdatePollState(model);

            model.AlreadyVoted = Polls.CheckIfMemberVotedInPoll(MemberSession.GetMemberId(), pollId);

            return(model);
        }