public async Task <IActionResult> PutBotTable(int id, BotsTable botTable) { if (id != botTable.BotId) { return(BadRequest()); } _context.Entry(botTable).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!BotTableExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutPlatformGroupTable(int id, PlatformTable platformGroupTable) { if (id != platformGroupTable.PlatformId) { return(BadRequest()); } _context.Entry(platformGroupTable).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!PlatformGroupTableExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }