Esempio n. 1
0
        public ActionResult Index()
        {
            var raceMapper = new RaceEventRetriever();

            raceMapper.GetRaceEvents();
            return(View());
        }
Esempio n. 2
0
        public ActionResult GetViewData(string sortCriteria = "", bool isAscending = true)
        {
            var raceMapper = new RaceEventRetriever();
            var events     = raceMapper.GetRaceEvents().ToArray();

            if (!string.IsNullOrEmpty(sortCriteria))
            {
                SortData(events, sortCriteria, isAscending);
            }

            return(Json(events, JsonRequestBehavior.AllowGet));
        }