File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
LibraryManagement.Api/Models/Foundations/Readers Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 33// Free To Use To Build Reliable Library Management Solutions
44//-----------------------------------------------------------
55
6+ using System . Text . Json . Serialization ;
67using LibraryManagement . Api . Models . Foundations . Books ;
78
89namespace LibraryManagement . Api . Models . Foundations . Readers
@@ -13,6 +14,9 @@ public class Reader
1314 public string FirstName { get ; set ; }
1415 public string LastName { get ; set ; }
1516 public DateTimeOffset DateOfBirth { get ; set ; }
16- public List < Book > Books { get ; set ; }
17+
18+ [ JsonIgnore ]
19+ [ System . ComponentModel . EditorBrowsable ( System . ComponentModel . EditorBrowsableState . Never ) ]
20+ public List < Book > Books { get ; set ; } = new ( ) ;
1721 }
1822}
You can’t perform that action at this time.
0 commit comments