CatPoop@lemmy.worldtoProgramming@programming.dev•Typing is not a programming bottleneckEnglish
12·
1 year agoAssuming this is C#, you could just make Reservation a record type, which can be defined with a one line primary constructor, is immutable and has value type equality. Second example is an insane amount of boilerplate.
Maybe also look ip a good component library, for C# I use MudBlazor, which has great documentation that helps a lot to pick the right component for the job, and a lot of the hard work is already done in terms of styles/themes.
For my apps I use the MVVM pattern and write all the backend logic first, then that helps me narrow down the right way to display it.