public async Task <IActionResult> Putapp_id_info(int id, app_id_info app_id_info) { if (id != app_id_info.appid) { return(BadRequest("Id doesn't match id in body!")); } _context.Entry(app_id_info).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!app_id_infoExists(id)) { return(NotFound("The record doesn't exist *sad raccoon noises*")); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> Putplayer_summaries(long id, player_summaries player_summaries) { if (id != player_summaries.steamid) { return(BadRequest("Id doesn't match id in body!")); } _context.Entry(player_summaries).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!player_summariesExists(id)) { return(NotFound("The record doesn't exist *sad raccoon noises*")); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> Putgames_1([Required] long steamid, [Required] long appid, games_1 games_1) { if (steamid != games_1.steamid || appid != games_1.appid) { return(BadRequest("steamid and or appid doesn't match id in body!")); } _context.Entry(games_1).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!games_1Exists((int)steamid, (int)appid)) { return(NotFound("The record doesn't exist *sad raccoon noises*")); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> Putachievement_percentages([Required] long appid, [Required] string name, achievement_percentages achievement_percentages) { if (appid != achievement_percentages.appid || name != achievement_percentages.Name) { return(BadRequest("appid and or Name doesn't match in the body!")); } _context.Entry(achievement_percentages).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!achievement_percentagesExists((int)appid, name)) { return(NotFound("The record doesn't exist *sad raccoon noises*")); } else { throw; } } return(NoContent()); }