예제 #1
0
 public ActionResult AddComment(CommentViewModel model, int articleId)
 {
     model.PublicationDate = DateTime.Now;
     model.AuthorId        = Convert.ToInt32(HttpContext.Profile.GetPropertyValue("Id"));
     model.ArticleId       = articleId;
     commentService.Create(model.GetBllEntity());
     return(GetComments(model.ArticleId));
 }