From a0c181571e5ec5fbef07c78ad40a98dcf68397ca Mon Sep 17 00:00:00 2001 From: Mario Figueiredo Date: Mon, 24 Apr 2023 12:21:05 +0100 Subject: [PATCH] Fix Room -> RoomDTO mapping Fixes error when creating Room DTO --- ClinicManagement/src/ClinicManagement.Core/Aggregates/Room.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ClinicManagement/src/ClinicManagement.Core/Aggregates/Room.cs b/ClinicManagement/src/ClinicManagement.Core/Aggregates/Room.cs index 6982fb17..aa2b6f37 100644 --- a/ClinicManagement/src/ClinicManagement.Core/Aggregates/Room.cs +++ b/ClinicManagement/src/ClinicManagement.Core/Aggregates/Room.cs @@ -7,6 +7,8 @@ public class Room : BaseEntity, IAggregateRoot { public string Name { get; set; } + private Room() { } + public Room(int id, string name) { Id = id;