Пример #1
0
        public ActionResult EmailConfirmation()
        {
            string         userEmail      = RetrieveUserSession();
            ProfileResults profileResults = new ProfileResults();

            profileResults.surveyAnswer = surveyAnswerDAL.GetSurveyResult(userEmail);

            if (profileResults.surveyAnswer.staff != null)
            {
                profileResults.franchiseList = franchiseSqlDAL.GetFranchiseListFromSurveyResults(profileResults.surveyAnswer);
                Extensions.SendEmail(userEmail, profileResults);
            }

            return(View());
        }
Пример #2
0
        public ActionResult ViewProfile() //should this be sending people to a list of their franchises?
        {
            string         userEmail      = RetrieveUserSession();
            ProfileResults profileResults = new ProfileResults();

            profileResults.surveyAnswer = surveyAnswerDAL.GetSurveyResult(userEmail);

            if (profileResults.surveyAnswer.staff != null)
            {
                profileResults.franchiseList = franchiseSqlDAL.GetFranchiseListFromSurveyResults(profileResults.surveyAnswer);
                return(View(profileResults));
            }

            return(RedirectToAction("BackToSurvey", "Home"));
        }