public async Task <IActionResult> PutClubMembersDetails([FromRoute] int id, [FromBody] ClubMembersDetails clubMembersDetails)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != clubMembersDetails.id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <IActionResult> PostClubMembersDetails([FromBody] ClubMembersDetails clubMembersDetails)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _context.clubMembers.Add(clubMembersDetails);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetClubMembersDetails", new { id = clubMembersDetails.id }, clubMembersDetails));
        }