public async Task <IActionResult> PutTblFootballTeam(decimal id, TblFootballTeam tblFootballTeam) { if (id != tblFootballTeam.FootballTeamId) { return(BadRequest()); } _context.Entry(tblFootballTeam).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TblFootballTeamExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutTblRole(int id, TblRole tblRole) { if (id != tblRole.RoleId) { return(BadRequest()); } _context.Entry(tblRole).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TblRoleExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }