How to structure this DTO?
Should I flatten this? I'm not sure how to make nested objects with C#.
My old-ish DTO model (before needing localization) looks like this:
7 Replies
i'm just going to flatten it
That's crazy, why even make a post at all if you're gonna make up your own mind not even 5 minutes later
oh, that's from yesterday
Rubberducking lol
Wait no I'm just fucking stupid, it just turned 12am for me lmfao
you just make another class with those properties and just have that class as a property. model binding handles nested objects no problem
@AntonC thank you
np