public async Task <ActionResult <ProjetProg> > PostProjetProg(ProjetProg projetProg)
        {
            _context.projetProgs.Add(projetProg);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetProjetProg", new { id = projetProg.Id }, projetProg));
        }
        public async Task <IActionResult> PutProjetProg(int id, ProjetProg projetProg)
        {
            if (id != projetProg.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }