Table of Contents

Class CreateBlogPostRequest

Namespace
Builvero.Application.DTOs.Blog
Assembly
Builvero.Application.dll

Request DTO for creating a new blog post.

public class CreateBlogPostRequest
Inheritance
CreateBlogPostRequest
Inherited Members

Properties

BodyHtml

Gets or sets the HTML body content of the blog post.

[Required]
public string BodyHtml { get; set; }

Property Value

string
Request DTO for creating a new blog post.

Remarks

This content will be sanitized before storage to prevent XSS attacks.

IsPublished

Gets or sets a value indicating whether the blog post should be published immediately.

public bool IsPublished { get; set; }

Property Value

bool
Request DTO for creating a new blog post.

Subject

Gets or sets the subject/title of the blog post.

[Required]
[StringLength(200, MinimumLength = 1)]
public string Subject { get; set; }

Property Value

string
Request DTO for creating a new blog post.