/// <summary> /// Remove survey and everything associated with /// </summary> /// <param name="surveyId"></param> /// <returns></returns> public Errors RemoveSurvey(int surveyId) { try { if (!_dbManager.SurveyExists(surveyId)) { return(Errors.INVALID_SURVEY_ID); } _dbManager.RemoveSurvey(surveyId); return(Errors.OK); } catch (Exception ex) { _logger.Error(ex.Message); return(Errors.DATA_BASE_ERROR); } }