public IActionResult SubmitSurvey(SurveyModel model) { if (!ModelState.IsValid) { return(View(model)); } else { _survDAL.AddNewSurvey(model); //TempData["msg"] = "<button><strong> Your Survey has been Added! See the new park rankings!</strong></button>"; return(RedirectToAction(nameof(Index))); } }
public IActionResult Survey(SurveyResult result) { SurveyDAL.AddNewSurvey(result); return(RedirectToAction("FavoritePark", "Home")); }