public ForgetUsernameSetting GetForgetUsernameSetting() { string dbSetting = GetSetting("ForgetUsernameSetting"); int value = int.Parse(dbSetting); ForgetUsernameSetting setting = (ForgetUsernameSetting)value; return(setting); }
public void UpdateForgetUsernameSetting(ForgetUsernameSetting forgetUsernameSetting) { try { _repository.UpdateForgetUsernameSetting(forgetUsernameSetting); } catch (SqlException sqlEx) { throw new Exception(EnumUtils.GetStringValue(ErrorMessage.UserDefinedMessage), sqlEx); } catch (Exception ex) { throw new Exception(EnumUtils.GetStringValue(ErrorMessage.UserDefinedMessage), ex); } }
public ForgetUsernameSetting GetForgetUsernameSetting() { try { ForgetUsernameSetting forgetUsernameSetting = _repository.GetForgetUsernameSetting(); return(forgetUsernameSetting); } catch (SqlException sqlEx) { throw new Exception(EnumUtils.GetStringValue(ErrorMessage.UserDefinedMessage), sqlEx); } catch (Exception ex) { throw new Exception(EnumUtils.GetStringValue(ErrorMessage.UserDefinedMessage), ex); } }
public void UpdateForgetUsernameSetting(ForgetUsernameSetting newSetting) { UpdateSetting("ForgetUsernameSetting", ((Int16)newSetting).ToString()); }