private VideoGameServices CreateVideoGameService()
        {
            var userID  = Guid.Parse(User.Identity.GetUserId());
            var service = new VideoGameServices(userID);

            return(service);
        }
Exemplo n.º 2
0
        public ActionResult InventoryCreate()
        {
            var userID = Guid.Parse(User.Identity.GetUserId());
            var db     = new VideoGameServices(userID);

            ViewBag.VideoGameID = new SelectList(db.GetVideoGames().ToList(), "VideoGameID", "VideoGameName");
            return(View());
        }