32 lines
767 B
C#
32 lines
767 B
C#
namespace PortBlog.API.Models
|
|
{
|
|
public class PostCreationDto
|
|
{
|
|
public int PostId { get; set; }
|
|
|
|
public string Slug { get; set; } = string.Empty;
|
|
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
public string Description { get; set; } = string.Empty;
|
|
|
|
public string[] Categories { get; set; } = [];
|
|
|
|
public string PostUrl { get; set; } = string.Empty;
|
|
|
|
public int? Likes { get; set; } = 0;
|
|
|
|
public int? Views { get; set; } = 0;
|
|
|
|
public int? Comments { get; set; } = 0;
|
|
|
|
public string? Image { get; set; }
|
|
|
|
public string? CreatedDate { get; set; }
|
|
|
|
public string? ModifiedDate { get; set; }
|
|
|
|
public string BlogUrl { get; set;} = string.Empty;
|
|
}
|
|
}
|