public ActionResult ResultsSeason2016_2017(string id)
        {
            var fixtureData = new FixtureData();

            if (id == "getRecentResults")
            {
                var scrapedFixtures = fixtureData.GetFixturesAndResults;

                ViewData["ResultsWithoutSpreadSuccessRate"] =
                    new FixtureData().GetResultsWithoutSpreadsPredictionSuccessRate;

                return(View(scrapedFixtures.ToList().OrderByDescending(x => x.FixtureDate)));
            }

            var results        = new ResultsSeason2016_2017();
            var orderedResults = results.GetSeasonResults(_db).ToList().OrderByDescending(x => x.FixtureDate);

            ViewData["ResultsWithoutSpreadSuccessRate"] = new FixtureData().GetResultsWithoutSpreadsPredictionSuccessRate;


            return(View(orderedResults));
        }
示例#2
0
 public void TearDown()
 {
     _fixture2016To2017 = null;
 }
示例#3
0
 public void SetUp()
 {
     _fixture2016To2017 = new ResultsSeason2016_2017();
 }