예제 #1
0
        public async Task DeleteSurvey(int id)
        {
            var survey = await _surveyRepository.FirstOrDefaultAsync(a => a.Id == id);

            if (survey == null)
            {
                return;
            }

            await _surveyManager.DeleteSurveyAsync(survey);
        }