public async Task <ActionResult <games_2> > Postgames_2(games_2 games_2)
        {
            _context.games_2.Add(games_2);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("Getgames_2", new { id = games_2.steamid }, games_2));
        }
        public async Task <IActionResult> Putgames_2([Required] long steamid, [Required] long appid, games_2 games_2)
        {
            if (steamid != games_2.steamid || appid != games_2.appid)
            {
                return(BadRequest("steamid and or appid doesn't match id in body!"));
            }

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

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!games_2Exists((int)steamid, (int)appid))
                {
                    return(NotFound("The record doesn't exist *sad raccoon noises*"));
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }