public async Task <ActionResult <EntrerDansIslam> > PostEntrerDansIslam(EntrerDansIslam entrerDansIslam)
        {
            _context.entrerDansIslams.Add(entrerDansIslam);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetEntrerDansIslam", new { id = entrerDansIslam.Id }, entrerDansIslam));
        }
        public async Task <IActionResult> PutEntrerDansIslam(int id, EntrerDansIslam entrerDansIslam)
        {
            if (id != entrerDansIslam.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }