Skip to content

submission commit#123

Open
0lcm wants to merge 2 commits into
the-csharp-academy:mainfrom
0lcm:main
Open

submission commit#123
0lcm wants to merge 2 commits into
the-csharp-academy:mainfrom
0lcm:main

Conversation

@0lcm
Copy link
Copy Markdown

@0lcm 0lcm commented Apr 3, 2026

No description provided.

Copy link
Copy Markdown
Collaborator

@TheCSharpAcademy TheCSharpAcademy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0lcm Thanks for submitting, it's looking good but I'm not able to add a shift. It's complaining there's no employee id (see picture below) but I never see an option to add an employee. Weirdly I still get a success message. Could you please have a look?

Image

updated the InitialCreate database to allow a nullable EmployeeId on the Shift schema, and added a check within the api after creation to make sure the object was successfully saved to the database, returning a 500 internal error status code if the object was not saved correctly.
@0lcm
Copy link
Copy Markdown
Author

0lcm commented Apr 20, 2026

Hi @TheCSharpAcademy, thank you for taking the time to review my project! There was a previous ef migration that was creating the Shift table with a not null constraint, but I edited the migration, and after updating the database everything is working on my machine.

If it still doesn't work, or any other changes need to be made please let me know!

image_2026-04-20_060627529 image_2026-04-20_060650019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants