Refactor ReadProfileHandler and add Buttons property

Updated `ReadProfileHandler` to assign buttons directly to the `profile` object before mapping to `ProfileDto`. This ensures the `Buttons` property is populated correctly. Added a new `[NotMapped]` property `Buttons` of type `IEnumerable<Button>?` to the `Profile` class to hold associated buttons.
This commit is contained in:
2025-08-01 01:58:15 +02:00
parent 709ebea097
commit c779dd4a47
2 changed files with 5 additions and 7 deletions

View File

@@ -27,4 +27,7 @@ public class Profile
[NotMapped]
public IEnumerable<ProfileObject>? Objects { get; set; }
[NotMapped]
public IEnumerable<Button>? Buttons { get; set; }
}