29 lines
751 B
C#
29 lines
751 B
C#
using System;
|
|
using System.Configuration;
|
|
|
|
namespace ContrattoSei.Utilities
|
|
{
|
|
public static class UtilityManager
|
|
{
|
|
public static string getAppSetting(string chiave)
|
|
{
|
|
#region changeNo1_glossario
|
|
|
|
if (ConfigurationManager.AppSettings[chiave] != null)
|
|
return ConfigurationManager.AppSettings[chiave];
|
|
return String.Empty;
|
|
|
|
// string valore = "" + ConfigurationManager.AppSettings[chiave];
|
|
|
|
// if (valore != string.Empty)
|
|
//return valore;
|
|
//else
|
|
//throw new Exception("Nel file di configurazione non è presente la chiave: " + chiave);
|
|
|
|
//return "";
|
|
|
|
#endregion
|
|
}
|
|
}
|
|
}
|