Esempio n. 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();
        }
Esempio n. 2
0
        public ActionResult Game(string key)
        {
            GameDTO gameDTO = _gameStoreService.GetGameByKey(key);

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

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