public HttpResponseMessage ListarServicoId(long id) { tb_servico servResp = servicoService.Get(id); if (servResp == null) { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, "Serviço não encontrado")); } return(Request.CreateResponse(HttpStatusCode.OK, servResp)); }