// GET: Import public ActionResult Index() { BetterDatabase db = new BetterDatabase(); var season = db.Where<Season>(string.Format("StartYear = {0}", 2014)); var teams = db.Get<Team>(); var matches = db.Where<Falyze.Data.Models.Match>(string.Format("SeasonId = '{0}'", season.First().Id)); ITableBuilder tblBuilder = new TableBuilder(matches, teams); tblBuilder.AddMatches(matches); return View(); }