Class DetailModel
Inheritance
System.Object
DetailModel
Assembly: Volo.Blogging.Web.dll
Syntax
public class DetailModel : BloggingPageModel
Constructors
Declaration
public DetailModel(IPostAppService postAppService, IBlogAppService blogAppService, ICommentAppService commentAppService)
Parameters
Type |
Name |
Description |
IPostAppService |
postAppService |
|
IBlogAppService |
blogAppService |
|
ICommentAppService |
commentAppService |
|
Properties
Blog
Declaration
public BlogDto Blog { get; set; }
Property Value
BlogShortName
Declaration
public string BlogShortName { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public int CommentCount { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public IReadOnlyList<CommentWithRepliesDto> CommentsWithReplies { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<CommentWithRepliesDto> |
|
Declaration
public Guid FocusCommentId { get; set; }
Property Value
Type |
Description |
System.Guid |
|
Declaration
public DetailModel.PostDetailsViewModel NewComment { get; set; }
Property Value
Post
Declaration
public PostWithDetailsDto Post { get; set; }
Property Value
Type |
Description |
PostWithDetailsDto |
|
PostUrl
Declaration
public string PostUrl { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
Declaration
public void CountComments()
Declaration
public string GetTwitterShareUrl(string title, string url, string linkedAccounts)
Parameters
Type |
Name |
Description |
System.String |
title |
|
System.String |
url |
|
System.String |
linkedAccounts |
|
Returns
Type |
Description |
System.String |
|
OnGetAsync()
Declaration
public virtual Task<IActionResult> OnGetAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task<IActionResult> |
|
OnPostAsync()
Declaration
public virtual Task<IActionResult> OnPostAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task<IActionResult> |
|
Extension Methods