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