Minimal API : Model / DTO Help
Hello! I'm new here and I'm looking for some help on my project. 
I'm working on building a website for my portfolio. I've got a Blazor frontend, and I'm using a minimal API for my backend.
I have models for BlogPosts, Projects and Tags. I am also using DTOs for each. I decided to use DTOs to prevent cyclical relationships but I keep running into them.
I'm quite new to this side of .NET and using Databases. I've been at this for a while and having a hard time getting it to work how I'd like it to.
From my BlogEndpoints, I'd like my GET requests to get all my blogs from the database, which is what it does currently, but it shows me only the IDs of the Tags and Projects. I think showing just the ID for the Project is fine since I'll be able to use the id in a link using said ID. I'd like to have a
I'm sure there are better ways, but that's why I came here to ask for some advice. If I can figure out how to fix this on my Blog endpoint, I'll be able to fix it on my Project endpoint as well.
Here are the Model and DTO for my BlogPost, as well as my GET and POST request for my endpoint
Maybe DTOs aren't needed. Maybe I should do away with the
Any and all feedback and help would be greatly appreciated
I'm working on building a website for my portfolio. I've got a Blazor frontend, and I'm using a minimal API for my backend.
I have models for BlogPosts, Projects and Tags. I am also using DTOs for each. I decided to use DTOs to prevent cyclical relationships but I keep running into them.
I'm quite new to this side of .NET and using Databases. I've been at this for a while and having a hard time getting it to work how I'd like it to.
From my BlogEndpoints, I'd like my GET requests to get all my blogs from the database, which is what it does currently, but it shows me only the IDs of the Tags and Projects. I think showing just the ID for the Project is fine since I'll be able to use the id in a link using said ID. I'd like to have a
List<Tag> Tags in each of my BlogPost so that I can just iterate through and do something like this on my Blazor end :I'm sure there are better ways, but that's why I came here to ask for some advice. If I can figure out how to fix this on my Blog endpoint, I'll be able to fix it on my Project endpoint as well.
Here are the Model and DTO for my BlogPost, as well as my GET and POST request for my endpoint
Maybe DTOs aren't needed. Maybe I should do away with the
List<Tag> Tags in my model and just use a List<int> TagIds instead and then ask the database what each Id corresponds to. I'm not sure which direction I should head.Any and all feedback and help would be greatly appreciated
