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

            if (id != historico_rendicion.ID)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <IActionResult> PostHistorico_rendicion([FromBody] Historico_rendicion historico_rendicion)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _context.Historico_rendicion.Add(historico_rendicion);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetHistorico_rendicion", new { id = historico_rendicion.ID }, historico_rendicion));
        }