MVC Unit Of Work across multiple modules
===

I have a question with regards to using the unit of work with the repository to handle transactions across multiple modules.

I have two modules called customer and warehouse and they both have their own databases.

At the moment I use the unit of work to update each module independently of each other. What I want now is to update both modules at the same time and if one of them is invalid then neither are committed.

Is this possible with the unit of work pattern?

Thank you.