Exemple #1
0
        public IActionResult GetUsersProposals()
        {
            var indentity = HttpContext.User.Identity as ClaimsIdentity;
            var userId    = Guid.Parse(indentity.FindFirst("UserId").Value);

            return(Ok(_proposalService.GetUserProposals(userId)));
        }
Exemple #2
0
 public IEnumerable <ProposalDTO> GetUserProposals(int idUser)
 {
     return(_proposalService.GetUserProposals(idUser));
 }