Table of Contents

Class PostCreationRequestDto

Namespace
GastroSky.Models.DTO.Post
Assembly
GastroSky.Models.dll

Request DTO for the creation of a new GastroSky.Models.DTO.Post.

public sealed class PostCreationRequestDto
Inheritance
PostCreationRequestDto
Inherited Members

Properties

AuthorUserSlug

User.Slug of who is responsible for this GastroSky.Models.DTO.Post.

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

Property Value

string

Category

The post category.

[Required]
public PostCategory Category { get; set; }

Property Value

PostCategory
See Also

CompanySlug

public string? CompanySlug { get; set; }

Property Value

string

ItemTypes

The ItemTypes that apply to this GastroSky.Models.DTO.Post.

[Required]
public ItemType[] ItemTypes { get; set; }

Property Value

ItemType[]

Subtitle

Translations payload in JSON format for theGastroSky.Models.DTO.Post's subtitle.

public TranslatableFieldDto Subtitle { get; set; }

Property Value

TranslatableFieldDto

Title

Translations payload in JSON format for theGastroSky.Models.DTO.Post's title.

[Required]
public TranslatableFieldDto Title { get; set; }

Property Value

TranslatableFieldDto