From fd139079a47d9cc9af5f66cefbdd0b58e8189f7a Mon Sep 17 00:00:00 2001 From: KharchenkoVladimir Date: Tue, 30 Nov 2021 09:34:23 +0500 Subject: [PATCH] CS2-123: Added [JsonIgnore] to UserRoleDto --- AsbCloudApp/Data/UserRoleDto.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AsbCloudApp/Data/UserRoleDto.cs b/AsbCloudApp/Data/UserRoleDto.cs index ade68871..6a2348e4 100644 --- a/AsbCloudApp/Data/UserRoleDto.cs +++ b/AsbCloudApp/Data/UserRoleDto.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Text.Json.Serialization; namespace AsbCloudApp.Data { @@ -8,8 +9,9 @@ namespace AsbCloudApp.Data public string Caption { get; set; } public int? IdParent { get; set; } public int IdType { get; set; } - public virtual ICollection Users { get; set; } public IEnumerable PermissionIds { get; set; } public IEnumerable Permissions { get; set; } + [JsonIgnore] + public virtual ICollection Users { get; set; } } }