Esempio n. 1
0
        public IActionResult EditVote([FromBody] JObject data)
        {
            int      userId   = data["userId"].ToObject <int>();
            int      postId   = data["postId"].ToObject <int>();
            VoteType voteType = data["vote"].ToObject <VoteType>();

            return(Ok(_voteRepository.EditVote(userId, postId, voteType)));
        }