public IActionResult GetUsersProposals() { var indentity = HttpContext.User.Identity as ClaimsIdentity; var userId = Guid.Parse(indentity.FindFirst("UserId").Value); return(Ok(_proposalService.GetUserProposals(userId))); }
public IEnumerable <ProposalDTO> GetUserProposals(int idUser) { return(_proposalService.GetUserProposals(idUser)); }