Beispiel #1
0
        // GET: Home/GameComments/{key}
        public ActionResult GameComments(string gameKey)
        {
            if (_gameStoreService.GetGameByKey(gameKey) != null)
            {
                IList <CommentDTO> commensDTO = _gameStoreService.GetCommentsByGameKey(gameKey);

                return(Json(commensDTO, JsonRequestBehavior.AllowGet));
            }
            throw new ArgumentException();
        }
Beispiel #2
0
        public ActionResult Game(string key)
        {
            GameDTO gameDTO = _gameStoreService.GetGameByKey(key);

            return(View(gameDTO));
        }
Beispiel #3
0
        public ActionResult Game(string key)
        {
            GameDTO gameDTO = _gameStoreService.GetGameByKey(key);

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