public static string Get(string key, string version = "default") { var servico = new ConfigServiceSoapClient(); var res = servico.BuscarConfiguracao(key, version); servico.Close(); return(res.ConfigValue); }
public static string Get(string key, string version = "default") { try { var servico = new ConfigServiceSoapClient(); var res = servico.BuscarConfiguracao(key, version); servico.Close(); return(res.ConfigValue); } catch (Exception ex) { return(ex.InnerException.ToString()); } }