示例#1
0
        public IHttpActionResult Get(Guid id)
        {
            var result = tecnologiaService.ObterPorId(id);

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

            return(Ok(result));
        }
示例#2
0
 public TecnologiaConsultaVM ObterPorId(int id) =>
 MapperUtils.Map <Tecnologia, TecnologiaConsultaVM>(_service.ObterPorId(id));