Ejemplo n.º 1
0
        public ActionResult Details(int id = 0)
        {
            ViewBag.Title = "Подробнее о настольной игре";
            var boardGame = _boardGameContext.GetBoardGame(id);

            if (boardGame == null)
            {
                return(HttpNotFound());
            }

            return(View(boardGame));
        }
Ejemplo n.º 2
0
        public ActionResult Create(int boardGameId)
        {
            if (_boardGameContext.GetBoardGame(boardGameId) == null)
            {
                return(HttpNotFound());
            }

            var review = new Review {
                BoardGameId = boardGameId
            };

            return(View(review));
        }