Exemple #1
0
        public async Task <ActionResult <Usuario> > Post([FromBody] PontoDotz pontoDotz)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var usuarioLogadoEmail = User.FindFirst(ClaimTypes.Email)?.Value;

            return(await Servico.AdicionarPontoDotzAsync(pontoDotz, usuarioLogadoEmail));
        }