Ejemplo n.º 1
0
        public static RunnerLineup getRunnerLineup(int?id)
        {
            AnythingFFDbContext db           = new AnythingFFDbContext();
            RunnerLineup        runnerLineup = new RunnerLineup();

            runnerLineup.runner = db.runners.Find(id);

            var lineup = db.lineups.Where(theLineup =>
                                          theLineup.runnerID == runnerLineup.runner.runnerID
                                          );

            runnerLineup.lineup = lineup.ToList();

            return(runnerLineup);
        }
Ejemplo n.º 2
0
        //make dummy data
        //for the foriegn key, forget about it


        public static RunnerLineup getRunnerLineup(int?id)
        {
            RunnerLineup runnerLineup = AnythingFF.getRunnerLineup(id);

            return(runnerLineup);
        }