Engage.Survey.Entities.Survey.CreateResponseHeader C# (CSharp) Method

CreateResponseHeader() private static method

Creates the response header.
private static CreateResponseHeader ( int userId ) : int
userId int The user id.
return int
        private static int CreateResponseHeader(int userId)
        {
            var surveyRepository = new SurveyRepository();
            var header = surveyRepository.CreateResponseHeader(userId);
            surveyRepository.SubmitChanges();

            return header.ResponseHeaderId;
        }