예제 #1
0
 public IActionResult CreateFeedback(FeedbackViewModel feedbackViewModel)
 {
     try
     {
         if (_feedbackService.FeedbackNumberValidation(feedbackViewModel.Email))
         {
             _feedbackService.CreateFeedback(feedbackViewModel);
             return(RedirectToAction("Index"));
         }
         else
         {
             return(View("MaxFeedbacksReached"));
         }
     }
     catch (Exception e)
     {
         return(View("ExceptionView"));
     }
 }