I have to use a web service and update a table in database. Conventionally I perform these steps:
- Open a transcation
- Call db update method(There no risk If it is changed nothing because it will rollback)
- Call a web service(external)
- If web service results is 200(ok) then call commit else rollback
But unit of work has one method SaveChanges(). How can I do this scenario in unit of work?
Aucun commentaire:
Enregistrer un commentaire