Exemplo n.º 1
0
        public static string GetSystemConstantValueByName(string name)
        {
            SystemConstantResponse response = new SystemConstantResponse();
            using (SystemConstantServiceClient client = new SystemConstantServiceClient())
            {
                response = client.GetSystemConstantByName(new SystemConstantRequest()
                {
                    Name = name,
                    SortBy =  SortBy.Name

                });

                client.Close();
            }
            if (response != null && response.SystemConstant != null)
            {
                return response.SystemConstant.ConstantValue;
            }
            return string.Empty;
        }