Beispiel #1
0
        public JsonResult GetScores()
        {
            var scores = ObjectService.GetEntities <ScoreEntity>();

            return(Json(scores, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public JsonResult GetChallenges()
        {
            var challenges = ObjectService.GetEntities <ChallengeEntity>();

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