private static int CreateResponseHeader(int userId) { var surveyRepository = new SurveyRepository(); var header = surveyRepository.CreateResponseHeader(userId); surveyRepository.SubmitChanges(); return header.ResponseHeaderId; }