Repository navigation
Retrieving categories from database #61
DotNetDublin
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone
I've created the branch mediatr-categories in order to update the AddTimeEntry.razor component to retrieve the categories from the database in the same manner are retrieving time entries.
It's working however there are serious caveats 😊
Firstly I'm not sure whether I should have added to ITimeEntryApi or created ICategoryApi at first I created ICategoryApi but then doubled back as I wasn't sure how I would register it on Program.cs and Startup.cs. Should there be a line per API interface created?
I also seem to have broken Swagger.
On the plus side the categories are being retrieved from the database and once you've updated the database you can find seed data here.
All reactions