public async Task <ActionResult <Investimentos> > PostInvestimentos(InvestimentosApi model)
        {
            if (ModelState.IsValid)
            {
                await _context.InsertAsync(model.ToModel());

                return(Ok());
            }

            return(BadRequest());
        }
        public async Task <IActionResult> PutInvestimentos(InvestimentosApi model)
        {
            if (ModelState.IsValid)
            {
                await _context.UpdateChangesAsync(model.ToModel());

                return(Ok());
            }

            return(BadRequest());
        }