private bool IsEnableConfig(string name) { bool result = false; Config config = dal.GetByConName(name); if (config != null && Convert.ToBoolean(config.ConValue)) { result = true; } return(result); }