Hello, i need some advice on what is the best thing to do. I am building asp.net core Web API with MongoDb identity. The logic goes like this controller > service > dbManagers.
I want to implement transactions so i can revert db operation if anything goes wrong. Now i dont want to repeat myself and add
using (var session = await _dbClient.StartSessionAsync())
using (var session = await _dbClient.StartSessionAsync())