public IActionResult Index(Feedback model) { if (ModelState.IsValid) { _feedbackRepository.AddFeedback(model); return(RedirectToAction("FeedbackComplete")); } return(View(model)); }
public IActionResult Index(Feedback feedback) { if (ModelState.IsValid) { _feedBackRepository.AddFeedback(feedback); return(Redirect("FeedbackComplete")); } return(View(feedback)); }