PostService.Vote Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
Vote(int, int?, bool)
Vote for the specified PollOption.
public static PollOption Vote(int id, int? userid = default(int? ), bool sudo = false)
Parameters
- id
- int
Id of the PollOption to vote for.
- userid
- int?
Id of the user that voted.
- sudo
- bool
true
to perform action as super user, otherwise false
.
Returns
PollOption
Returns the selected PollOption.