/// <summary> /// Retorna um objeto CBODTO caso a instrução seja bem sucedida. /// </summary> public CBODTO GetCBO(int id) { try { if (Global.TpConexao == Enumeradores.TipoConexao.LAN) { return(regrasnegocio.GetCBO(id)); } else { using (CBOBOClient regrasnegocioclient = new CBOBOClient(proxy.Binding, proxy.EndPoint)) return(regrasnegocioclient.GetCBO(id)); } } catch { throw; } }
/// <summary> /// Retorna uma lista de objetos CBODTO caso a instrução seja bem sucedida. /// </summary> public List <CBODTO> GetGridCBO(string Campo, string ValorPesquisa) { try { if (Global.TpConexao == Enumeradores.TipoConexao.LAN) { return(regrasnegocio.GetGridCBO(Campo, ValorPesquisa)); } else { using (CBOBOClient regrasnegocioclient = new CBOBOClient(proxy.Binding, proxy.EndPoint)) return(regrasnegocioclient.GetGridCBO(Campo, ValorPesquisa)); } } catch { throw; } }