public async Task <IActionResult> Put([FromRoute] int id, [FromBody] Versamento versamento)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != versamento.IdVersamento)
            {
                return(BadRequest());
            }

            _context.Entry(versamento).State = EntityState.Modified;

            try

            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!VersamentoExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }