示例#1
0
 public ActionResult AddFeedback(Feedback feedback)
 {
     if (TryValidateModel(feedback))
     {
         _feedbackRepository.CreateArticle(feedback);
         return(View());
     }
     else
     {
         return(View("Error"));
     }
 }