public async Task <PetColorConfig> CreatePetColor(PetColorConfig color, User activeDev) { using (var trans = TransactionScopeFactory.Create()) { color.Id = await ConfigRepo.CreatePetColor(color); trans.Complete(); } color = (await ConfigRepo.RetrieveColorsByIds(color.Id)).FirstOrDefault(); return(color); }