Exemplo n.º 1
0
        public List <Match> GetByNFixture(Fixture fixture)
        {
            var _fixture = _fixtreBl.GetByNFixture(fixture);

            if (_fixture != null)
            {
                return(_matchData.GetByFixtureId(_fixture.Id));
            }
            else
            {
                return(new List <Match>());
            }
        }
Exemplo n.º 2
0
        public List <Fixture> GetByNFixtureAndSeason(Dictionary <string, int> dict)
        {
            int fixtureto = dict["NFixtureTo"];
            int season    = dict["Season"];
            int leagueid  = dict["LeagueId"];

            var fixtures = _fixtureData.GetByLeagueAndSeason(leagueid, season);

            foreach (var f in fixtures)
            {
                var matches = _matchesData.GetByFixtureId(f.Id);
                f.Matches = matches;
            }
            return(fixtures.Where(w => w.NFixture <= fixtureto).OrderBy(o => o.NFixture).ToList());
        }