public async Task <IActionResult> PutEntregableHistoria(int id, EntregableHistoria entregableHistoria)
        {
            if (id != entregableHistoria.EntregableHistoriaId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <EntregableHistoria> > PostEntregableHistoria(EntregableHistoria entregableHistoria)
        {
            _context.EntregableHistoria.Add(entregableHistoria);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetEntregableHistoria", new { id = entregableHistoria.EntregableHistoriaId }, entregableHistoria));
        }