//To Update the records of a particluar team public int UpdateTeam(TblTeams team) { try { db.Entry(team).State = EntityState.Modified; db.SaveChanges(); return(1); } catch { throw; } }
//To Update the records of a particluar player public int UpdatePlayer(TblPlayer player) { try { db.Entry(player).State = EntityState.Modified; db.SaveChanges(); return(1); } catch { throw; } }