public async Task <ActionResult <Prompt> > Post([FromBody] Prompt prompt)
        {
            _db.Prompts.Add(prompt);
            await _db.SaveChangesAsync();

            return(CreatedAtAction(nameof(GetPrompt), new { id = prompt.PromptId }, prompt));
        }
    public async Task<ActionResult<Card>> Post(Card card)
    {
      _db.Cards.Add(card);
      await _db.SaveChangesAsync();

      return CreatedAtAction(nameof(GetCard), new { id = card.CardId }, card);
    }
        public async Task <ActionResult <Player> > Post(Player player)
        {
            _db.Players.Add(player);
            await _db.SaveChangesAsync();

            return(CreatedAtAction(nameof(GetPlayer), new { id = player.PlayerID }, player));
        }
 public async Task <IActionResult> Put(int id, Select select)
 {
     if (id != select.SelectId)
     {
         return(BadRequest());
     }
     _db.Entry(select).State = EntityState.Modified;
     try
     {
         await _db.SaveChangesAsync();
     }
     catch (DbUpdateConcurrencyException)
     {
         if (!SelectExists(id))
         {
             return(NotFound());
         }
         else
         {
             throw;
         }
     }
     return(NoContent());
 }