public async Task <IActionResult> PutResultParticipation(int id, ResultParticipation resultParticipation)
        {
            if (id != resultParticipation.IdResultParticipation)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <ResultParticipation> > PostResultParticipation(ResultParticipation resultParticipation)
        {
            _context.ResultParticipation.Add(resultParticipation);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetResultParticipation", new { id = resultParticipation.IdResultParticipation }, resultParticipation));
        }