From c6538b8d0d61780ef8ee1dbe6786709ae851fe83 Mon Sep 17 00:00:00 2001 From: Bangara Raju Kottedi Date: Tue, 7 May 2024 02:49:17 +0530 Subject: [PATCH] code refactoring --- PortBlog.API/Models/PostCreationDto.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PortBlog.API/Models/PostCreationDto.cs b/PortBlog.API/Models/PostCreationDto.cs index 090f3bf..9cd54ae 100644 --- a/PortBlog.API/Models/PostCreationDto.cs +++ b/PortBlog.API/Models/PostCreationDto.cs @@ -14,11 +14,11 @@ public string PostUrl { get; set; } = string.Empty; - public int Likes { get; set; } = 0; + public int? Likes { get; set; } = 0; - public int Views { get; set; } = 0; + public int? Views { get; set; } = 0; - public int Comments { get; set; } = 0; + public int? Comments { get; set; } = 0; public string? Image { get; set; }