예제 #1
0
        public IActionResult Detalhes(int id)
        {
            if (id == 0)
            {
                return(NotFound());
            }
            var ong = _ongService.ObterPorId(id);

            if (ong == null)
            {
                return(NotFound());
            }
            return(View(ong));
        }
예제 #2
0
 public OngViewModel ObterPorId(Guid id)
 {
     return(Mapper.Map <OngViewModel>(_ongService.ObterPorId(id)));
 }
예제 #3
0
 public IActionResult Obter(int id) => Retorno(_ongService.ObterPorId(id));