// 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)); }
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)); }
public IActionResult GetById(Guid id) { JogoViewModel _result = _service.GetById(id); return(Ok(_result)); }