Ejemplo n.º 1
0
        public async Task <IActionResult> PostAsync(ProposalViewModel model)
        {
            string res = User.Claims.First(x => x.Type == "FreelancerId").Value;

            int freelancerId = int.Parse(res);

            model.FreelancerId = freelancerId;

            await proposalService.AddAsync(model);

            return(Ok());
        }