// 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(); }
public ActionResult Game(string key) { GameDTO gameDTO = _gameStoreService.GetGameByKey(key); return(View(gameDTO)); }
public ActionResult Game(string key) { GameDTO gameDTO = _gameStoreService.GetGameByKey(key); return(Json(gameDTO, JsonRequestBehavior.AllowGet)); }