Example #1
0
        public async Task Create(Survey survey)
        {
            survey.Id = survey.GenerateGuid();

            foreach (var option in survey.Options)
            {
                option.Id = survey.GenerateGuid();
            }

            await _repository.Create(survey);
        }