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