Commit 4a8e89d6 authored by Almouhannad's avatar Almouhannad

(B) Add rollback to command handler base

parent 2682fdbb
...@@ -28,6 +28,7 @@ public abstract class CommandHandlerBase<TCommand> : ICommandHandler<TCommand> ...@@ -28,6 +28,7 @@ public abstract class CommandHandlerBase<TCommand> : ICommandHandler<TCommand>
} }
catch (Exception) catch (Exception)
{ {
transaction.Rollback();
return Result.Failure(PersistenceErrors.UnableToCompleteTransaction); return Result.Failure(PersistenceErrors.UnableToCompleteTransaction);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment