Esempio n. 1
0
        public async Task <List <int> > CreateRandomEventConfigs(List <RandomEventDefinition> defs, User activeDev)
        {
            var newIds = new List <int>();

            using (var trans = TransactionScopeFactory.Create())
            {
                foreach (var def in defs)
                {
                    newIds.Add(await ConfigRepo.CreateRandomEventConfig(def));
                }
                trans.Complete();
            }
            return(newIds);
        }