예제 #1
0
 public ActionResult Comment(CommentModel model)
 {
     if (model.ItemId != 0 && !string.IsNullOrEmpty(model.Text))
     {
         _claimService.Comment(model);
         return(PartialView("Comment", model));
     }
     return(null);
 }
예제 #2
0
 public CommentModel PostComment([FromBody] CommentModel comment)
 {
     return(_claimService.Comment(comment));
 }