Skip to content

Commit

Permalink
Fix Room -> RoomDTO mapping
Browse files Browse the repository at this point in the history
Fixes error when creating Room DTO
  • Loading branch information
Rahtgaz committed Apr 24, 2023
1 parent 4cee19a commit a0c1815
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ClinicManagement/src/ClinicManagement.Core/Aggregates/Room.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ public class Room : BaseEntity<int>, IAggregateRoot
{
public string Name { get; set; }

private Room() { }

public Room(int id, string name)
{
Id = id;
Expand Down

0 comments on commit a0c1815

Please sign in to comment.