public ActionResult Survey(Survey survey) { // Save the Survey bool Survey = applicationDal.SaveSurvey(survey); // Redirect the user to the Confirmation Page return(RedirectToAction("SurveyResults")); }
public ActionResult Survey(Survey model) { if (!ModelState.IsValid) { return(View("Survey", model)); } else { bool success = applicationDal.SaveSurvey(model); return(RedirectToAction("MostPopPark")); } }