예제 #1
0
        public static PollVote Update(Guid pollId, Guid pollAnswerId)
        {
            try
            {
                var pollVote = new Internal.PollVote();
                pollVote.PollId       = pollId;
                pollVote.PollAnswerId = pollAnswerId;
                pollVote.UserId       = TEApi.Users.AccessingUser.Id.Value;

                Internal.PollingService.AddUpdatePollVote(pollVote);

                return(Get(pollId));
            }
            catch (Exception ex)
            {
                return(new PollVote(new AdditionalInfo(new Error(ex.GetType().FullName, ex.Message))));
            }
        }
예제 #2
0
        public static PollVote Update(Guid pollId, Guid pollAnswerId)
        {
            try
            {
                var pollVote = new Internal.PollVote();
                pollVote.PollId = pollId;
                pollVote.PollAnswerId = pollAnswerId;
                pollVote.UserId = TEApi.Users.AccessingUser.Id.Value;

                Internal.PollingService.AddUpdatePollVote(pollVote);

                return Get(pollId);
            }
            catch (Exception ex)
            {
                return new PollVote(new AdditionalInfo(new Error(ex.GetType().FullName, ex.Message)));
            }
        }
예제 #3
0
 internal PollVote(Internal.PollVote pollVote)
     : base()
 {
     _pollVote = pollVote;
 }
예제 #4
0
 internal PollVote(Internal.PollVote pollVote)
     : base()
 {
     _pollVote = pollVote;
 }