public bool UpdateSetting(Guid userGuid, Business.AccountSetting settingKey, string value) { return(ExecuteSPCommand("UpdateSetting", "@UserGuid", userGuid, "@Key", (int)settingKey, "@Value", value)); }
//public bool UpdateSetting(Guid userGuid, string key, string value) //{ // return base.ExecuteSPCommand("UpdateSetting", // "@UserGuid", userGuid, // "@Key", key, // "@Value", value); //} //public bool UpdateShortcut(Guid userGuid, string value) //{ // return base.ExecuteSPCommand("UpdateShortcut", "@UserGuid", userGuid, // "@Value", value); //} public string GetSettingValue(Guid userGuid, Business.AccountSetting key) { try { return(GetSPFieldValue("GetSettingValue", "@UserGuid", userGuid, "@Key", (int)key).ToString()); } catch { return(string.Empty); } }
public static string GetSettingValue(Guid userGuid, Business.AccountSetting key) { Business.UserSetting userSettingController = new Business.UserSetting(); return(userSettingController.GetSettingValue(userGuid, key)); }
//public static DataTable GetUserLowCredit() //{ // Business.UserSetting userSettingController = new Business.UserSetting(); // return userSettingController.GetUserLowCredit(); //} public static bool UpdateSetting(Guid userGuid, Business.AccountSetting accountSetting, string value) { Business.UserSetting userSettingController = new Business.UserSetting(); return(userSettingController.UpdateSetting(userGuid, accountSetting, value)); }