Example #1
0
        public async Task <PetSpeciesConfig> CreatePetSpecies(PetSpeciesConfig species, User activeDev)
        {
            using (var trans = TransactionScopeFactory.Create())
            {
                species.Id = await ConfigRepo.CreatePetSpecies(species);

                trans.Complete();
            }
            species = (await ConfigRepo.RetrieveSpeciesByIds(species.Id)).FirstOrDefault();
            return(species);
        }