public virtual ActionResult Create(CommentModel model) { var post = Mapper.Map<CommentModel, Comment>(model); _postService.AddComment(model.PostId, post); return this.RedirectToAction<HomeController>(x => x.Post(model.PostId)); }
public virtual PartialViewResult Create(string postId) { var model = new CommentModel { PostId = postId }; return PartialView(model); }