Пример #1
0
        public async Task <IActionResult> Details(Guid id)
        {
            var patrimonioViewModel = _mapper.Map <PatrimonioViewModel>(await _patrimonioRepository.ObterPorId(id));

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

            return(View(patrimonioViewModel));
        }
Пример #2
0
 public async Task <Patrimonio> ProdutoDetalhe(Guid id)
 {
     return(await _patrimonioRepository.ObterPorId(id));
 }