Ejemplo n.º 1
0
        public ActionResult CreateCategories()
        {
            GameCategoryDao      gameCategoryDao = new GameCategoryDao();
            IList <GameCategory> categories      = gameCategoryDao.GetAll();

            ViewBag.Categories = categories;

            return(View("CreateCategories"));
        }
Ejemplo n.º 2
0
        public ActionResult Edit(int id)
        {
            GameDao         gameDao         = new GameDao();
            GameCategoryDao gameCategoryDao = new GameCategoryDao();

            Game g = gameDao.GetById(id);

            ViewBag.Categories = gameCategoryDao.GetAll();

            return(View(g));
        }