예제 #1
0
        private int GetNumberOfDays(string key, int defaultValue)
        {
            bool          tryGetexpiredIDNoOfDays = false;
            PortalSetting portalsetting           = portalSettingsServiceInstance.GetSettingByKey(key);

            tryGetexpiredIDNoOfDays = int.TryParse(portalsetting != null ? portalsetting.Value : string.Empty, out expiredIDNoOfDays);
            expiredIDNoOfDays       = expiredIDNoOfDays == 0 ? defaultValue : expiredIDNoOfDays;
            return(expiredIDNoOfDays);
        }
 public ActionResult EditSettings(int PSID, string key)
 {
     portalSetting = portalSettingsServiceInstance.GetSettingByKey(key);
     return(View(portalSetting));
 }