diff --git a/Tsi1.Api/Tsi1.BusinessLayer/Dtos/PostCreateDto.cs b/Tsi1.Api/Tsi1.BusinessLayer/Dtos/PostCreateDto.cs index b3bbe807c6a6b143d26911a86041054578795b94..91eae2bf160faca45e869a0f03fb101e337fe85f 100644 --- a/Tsi1.Api/Tsi1.BusinessLayer/Dtos/PostCreateDto.cs +++ b/Tsi1.Api/Tsi1.BusinessLayer/Dtos/PostCreateDto.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Text; +using System.Text.Json.Serialization; namespace Tsi1.BusinessLayer.Dtos { @@ -10,6 +11,7 @@ namespace Tsi1.BusinessLayer.Dtos public int ForumId { get; set; } + [JsonIgnore] public int UserId { get; set; } } diff --git a/Tsi1.Api/Tsi1.BusinessLayer/Dtos/PostMessageCreateDto.cs b/Tsi1.Api/Tsi1.BusinessLayer/Dtos/PostMessageCreateDto.cs index b42cf311baaf3433c13095f34511bc3b32a5ba27..84900b4981cce5bfc66b8608f8b69898b539636a 100644 --- a/Tsi1.Api/Tsi1.BusinessLayer/Dtos/PostMessageCreateDto.cs +++ b/Tsi1.Api/Tsi1.BusinessLayer/Dtos/PostMessageCreateDto.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Text; +using System.Text.Json.Serialization; namespace Tsi1.BusinessLayer.Dtos { @@ -8,6 +9,7 @@ namespace Tsi1.BusinessLayer.Dtos { public string Content { get; set; } + [JsonIgnore] public int UserId { get; set; } public int PostId { get; set; }