public async Task DeleteSurvey(int id) { var survey = await _surveyRepository.FirstOrDefaultAsync(a => a.Id == id); if (survey == null) { return; } await _surveyManager.DeleteSurveyAsync(survey); }
public async Task DeleteSurvey(int id) { var survey = await _surveyRepository.FirstOrDefaultAsync(a => a.Id == id); if (survey == null) { return; } await _surveyManager.DeleteSurveyAsync(survey); }