public async Task <ActionResult <UpdateQuantidadeResponse> > UpdateQuantidade([FromBody] UpdateQuantidadeInput input) { string clienteId = userManager.GetUserId(this.User); if (!ModelState.IsValid) { return(BadRequest(ModelState)); } try { var output = await carrinhoRepository.UpdateItemCarrinhoAsync(clienteId, input); return(Ok(output)); } catch (KeyNotFoundException) { return(NotFound(clienteId)); } }