MonocleGiraffe.Portable.Models.GalleryItem.UpVote C# (CSharp) Method

UpVote() public method

public UpVote ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public async Task UpVote()
        {
            string toVote;
            if (IsUpVoted)
            {
                toVote = "veto";
                Points--;
            }
            else
            {
                if (IsDownVoted)
                    Points++;
                toVote = "up";
                Points++;
            }
            IsDownVoted = false;
            IsUpVoted = !IsUpVoted;
            await Gallery.Vote(Id, toVote);
        }