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