Example #1
0
        public static bool ValidateSurvey(SurveyModel survey)
        {
            bool bValid = false;

            if (survey != null)
            {
                bValid = survey.IsValid();
            }
            return(bValid);
        }
Example #2
0
        public static bool ValidateSurveyId(string surveyId)
        {
            bool        bValid = false;
            SurveyModel survey = new SurveyModel();

            survey.SurveyId = surveyId;
            if (surveyId != null && survey.IsValid("Survey Id"))
            {
                bValid = true;
            }

            return(bValid);
        }