示例#1
0
        public ForgetUsernameSetting GetForgetUsernameSetting()
        {
            string dbSetting = GetSetting("ForgetUsernameSetting");

            int value = int.Parse(dbSetting);
            ForgetUsernameSetting setting = (ForgetUsernameSetting)value;

            return(setting);
        }
示例#2
0
 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);
     }
 }
示例#3
0
 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);
     }
 }
示例#4
0
 public void UpdateForgetUsernameSetting(ForgetUsernameSetting newSetting)
 {
     UpdateSetting("ForgetUsernameSetting", ((Int16)newSetting).ToString());
 }