public ActionResult Details(int id = 0) { ViewBag.Title = "Подробнее о настольной игре"; var boardGame = _boardGameContext.GetBoardGame(id); if (boardGame == null) { return(HttpNotFound()); } return(View(boardGame)); }
public ActionResult Create(int boardGameId) { if (_boardGameContext.GetBoardGame(boardGameId) == null) { return(HttpNotFound()); } var review = new Review { BoardGameId = boardGameId }; return(View(review)); }