// GET: Jogos/Details/5
        public IActionResult Details(int id)
        {
            var jogoViewModel = _jogoAppService.GetById(id);

            if (jogoViewModel == null)
            {
                return(NotFound());
            }

            //return View(jogoViewModel);
            return(PartialView(jogoViewModel));
        }
예제 #2
0
        public IActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var viewModel = _appService.GetById(id.Value);

            viewModel.Amigos = _amigoAppService.GetAll();

            if (viewModel == null)
            {
                return(NotFound());
            }

            return(View(viewModel));
        }
예제 #3
0
        public IActionResult GetById(Guid id)
        {
            JogoViewModel _result = _service.GetById(id);

            return(Ok(_result));
        }