Пример #1
0
 public DataResult <bool> SetUserDataVerified(int userId, int verifierId)
 {
     try
     {
         m_userUoW.SetUserDataVerified(userId, verifierId);
         return(Success(true));
     }
     catch (DatabaseException e)
     {
         m_logger.LogWarning(e);
         return(Error <bool>(e.Message));
     }
     catch (UserDataAlreadyExistsException e)
     {
         m_logger.LogWarning(e);
         return(Error <bool>(m_translator.Translate("set-user-data-verified-failed"),
                             UserDataTypeErrorCodeHelper.GetCodeForUniqueUserDataTypeException(e.DataType)));
     }
 }