Exemple #1
0
        public IActionResult DislikeProposal([FromBody] UserDecisionViewModel model)
        {
            var indentity = HttpContext.User.Identity as ClaimsIdentity;
            var userId    = Guid.Parse(indentity.FindFirst("UserId").Value);

            return(Ok(_proposalService.Dislike(model.ProposalId, userId)));
        }