From e190fef51480a500ff7d69476abb9cf3bd910059 Mon Sep 17 00:00:00 2001
From: esantangelo <enzo020895@gmail.com>
Date: Sun, 18 Oct 2020 14:28:05 -0300
Subject: [PATCH] commit

---
 Tsi1.Api/Tsi1.BusinessLayer/Dtos/PostCreateDto.cs        | 2 ++
 Tsi1.Api/Tsi1.BusinessLayer/Dtos/PostMessageCreateDto.cs | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/Tsi1.Api/Tsi1.BusinessLayer/Dtos/PostCreateDto.cs b/Tsi1.Api/Tsi1.BusinessLayer/Dtos/PostCreateDto.cs
index b3bbe80..91eae2b 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 b42cf31..84900b4 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; }
-- 
GitLab