public static List<RefereesMatch> GetAllRefereesInMatches(int id)
        {
            FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();

            return db.RefereesMatches.Where(m => m.MatchID == id).ToList();
        
        }
Ejemplo n.º 2
0
        public static List<Owner> GetTeamOwner()
        {
            FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();

            return db.Owners.ToList();

        }
Ejemplo n.º 3
0
        public static List<Stadium> GetAllStadiums()
        {
            FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();

            return db.Stadiums.ToList();
        
        }
Ejemplo n.º 4
0
        public static List<Sponsor> GetTeamSponsor()
        {
            FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();

            return db.Sponsors.ToList();

        }
Ejemplo n.º 5
0
        public static List<Coach> GetTeamCoach()
        {
            FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();

            return db.Coaches.ToList();

        }
Ejemplo n.º 6
0
        public static List<PlayersTeam> GetAllPlayersInTeams(int id)
        {
            FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();

            return db.PlayersTeams.Where(p => p.TeamID == id ).ToList();

        }
Ejemplo n.º 7
0
        public static List<FootballMatch> GetAllMatches()
        {
            FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();

            return db.FootballMatches.ToList();
        
        }
Ejemplo n.º 8
0
       public static List<Player> GetAllPlayers()
       {

           FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();
      
           return db.Players.ToList();
       }
Ejemplo n.º 9
0
       public static List<Tournament> GetAllTournaments()
       {
           FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();

           return db.Tournaments.ToList();
       
       }
Ejemplo n.º 10
0
        public static List<OwnersTeam> GetAllOwnersInTeams(int id)
        {
            FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();

            return db.OwnersTeams.Where(o => o.TeamID == id).ToList();
        
        }
Ejemplo n.º 11
0
        public static List<Country> GetAllCountries()
        {
            FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();

            return db.Countries.ToList();
        
        }
Ejemplo n.º 12
0
        public static List<Referee> GetAllReferees()
        {
            FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();

            return db.Referees.ToList();
        
        }
        public static List<FootballAssociation> GetAllAssociations()
        {
            FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();

            return db.FootballAssociations.ToList();
        
        }
Ejemplo n.º 14
0
       public static List<StadiumsTeam> GetAllStadiumsInTeams(int id)
       {
           FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();

           return db.StadiumsTeams.Where(s => s.TeamID == id).ToList();
       
       }
Ejemplo n.º 15
0
        public static List<CoachesTeam> GetAllCoachesInTeams(int id)
        {
            FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();

            return db.CoachesTeams.Where(c => c.TeamID == id).ToList();
        
        }
Ejemplo n.º 16
0
 public ActionResult TeamDetails(int id)
 {
     FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();
     Team team = db.Teams.SingleOrDefault(t => t.TeamID == id);
     return View(team);
 }
Ejemplo n.º 17
0
        public static List<Team> GetAllTeams()
        {
            FootballZoneMVC4Entities db = new FootballZoneMVC4Entities();

            return db.Teams.ToList();
        }