public async Task <IActionResult> PutParticipantInSchool(int id, ParticipantInSchool participantInSchool)
        {
            if (id != participantInSchool.SchoolParticipantId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <ParticipantInSchool> > PostParticipantInSchool(ParticipantInSchool participantInSchool)
        {
            _context.ParticipantInSchools.Add(participantInSchool);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetParticipantInSchool", new { id = participantInSchool.SchoolParticipantId }, participantInSchool));
        }