Yes, you can! Neither of these class abilities restricts you to a normal Attack action. Instead, they only care that you made a Melee attack against a target. Remember, you can still only Sneak Attack once per round. If you miss your first attack, using your Bonus Action to offhand attack can be an excellent way to make sure you're still outputting damage.