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()); }
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")); }