public async Task <IActionResult> Details(Guid id) { var patrimonioViewModel = _mapper.Map <PatrimonioViewModel>(await _patrimonioRepository.ObterPorId(id)); if (patrimonioViewModel == null) { return(NotFound()); } return(View(patrimonioViewModel)); }
public async Task <Patrimonio> ProdutoDetalhe(Guid id) { return(await _patrimonioRepository.ObterPorId(id)); }