예제 #1
0
        private int GetUserSubmissionCount()
        {
            var responses = SurveyResponse.GetAll(SurveyGuid);
            var userGuid  = Guid.Empty;

            if (siteUser != null)
            {
                userGuid = siteUser.UserGuid;
            }

            if (userGuid != Guid.Empty)
            {
                return(responses.Where(response => response.UserGuid == userGuid).Count());
            }

            return(0);
        }