public virtual EDominio Get(int id) { try { return(service.BuscarPorId(id)); } catch (Exception ex) { Erro _erro = new GerenciadorErroService().TrataErro(ex); throw new HttpResponseException(Request.CreateErrorResponse(HttpStatusCode.NotFound, _erro.Mensagem)); } }