Beispiel #1
0
        public async Task <PostVoteDTO> DeleteVote(PostVoteDTO voteDTO)
        {
            var vote = new PostVote {
                PostId = voteDTO.PostId, UserId = voteDTO.UserId
            };

            if (await postManager.DeleteVote(vote) == null)
            {
                return(null);
            }
            return(voteDTO);
        }