public async Task Create(Survey survey) { survey.Id = survey.GenerateGuid(); foreach (var option in survey.Options) { option.Id = survey.GenerateGuid(); } await _repository.Create(survey); }
public async Task Create(Survey survey) { survey.Id = survey.GenerateGuid(); foreach (var option in survey.Options) { option.Id = survey.GenerateGuid(); } await _repository.Create(survey); }