public DataResult <bool> EnableTwoFactorAuth(int userId, string provider = null) { try { m_userUoW.EnableTwoFactorAuth(userId, provider); return(Success(true)); } catch (DatabaseException e) { m_logger.LogWarning(e); return(Error <bool>(e.Message)); } }