public static bool ValidateSurvey(SurveyModel survey) { bool bValid = false; if (survey != null) { bValid = survey.IsValid(); } return(bValid); }
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); }