Example #1
0
        public ActionResult Index()
        {
            //NBAScoreboardModel scoreboardModel = new NBAScoreboardModel("12/02/2018");
            NBAScoreboardModel scoreboardModel = new NBAScoreboardModel(DateTime.Now.AddDays(-1));

            // To do: store this in a long term cache and start using it globally
            // NBATeamDetailsModel model = new NBATeamDetailsModel(DateTime.Now);

            return(View(scoreboardModel));
        }
Example #2
0
        public ActionResult GetSchedule(string date)
        {
            NBAScoreboardModel scoreboardModel = new NBAScoreboardModel(date);

            return(PartialView("_NBASchedule", scoreboardModel));
        }