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)))); } }
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))); } }
internal PollVote(Internal.PollVote pollVote) : base() { _pollVote = pollVote; }
internal PollVote(Internal.PollVote pollVote) : base() { _pollVote = pollVote; }