public async Task <Account> CreateNew(string name) { using (var scope = _transactionScopeFactory.CreateScope(TransactionScopeOption.Required, TransactionScopeAsyncFlowOption.Enabled)) { await _accountService.CreateAccount(name); await _accountService.MarkAccountAsValid(name); scope.Complete(); } return(new Account { Name = name }); }