public static bool HasValidSession(out Submission submission) { if (HttpContext.Current.Session[Constants.SessionNewsletterKey] != null) { submission = (Submission)HttpContext.Current.Session[Constants.SessionNewsletterKey]; if (!String.IsNullOrEmpty(submission.Email)) { return true; } } submission = null; return false; }
public static bool HasValidSession(out Submission submission) { // Run previous step validation if (ChildInformationPageItem.HasValidSession(out submission)) { // Ensure child exists if (submission.Children.Any()) { return true; } } submission = null; return false; }