public ActionResult Detail(string catURL, string postUrl) { PostDetailModel postDetai = new PostDetailModel(); var post = _PostServices.GetPost(catURL, postUrl); //chi tiết postDetai.Post = post.Convert(withFullDesc: true, withUser: true, withTag: true); // liên quan tác giả var postAuhor = _PostServices.GetPostAuthor(post.Id, post.CreateUser.Email); postDetai.PostAuthor = postAuhor.Convert(withUser: true); // bài viết liên quan var postRelated = _PostServices.GetListPost(3, categoryId: postDetai.Post.Category.Id, PostID: postDetai.Post.Id); postDetai.PostRelated = postRelated.Convert(catURL: catURL); return(View(postDetai)); }