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