Closed danielmackay closed 1 week ago
> 1. What triggered this change? (PBI link, Email Subject, conversation + reason, etc)
✏️ https://github.com/SSWConsulting/SSW.CleanArchitecture/issues/425
What was changed?
✏️ This pull request includes changes to the GetTeamQuery and GetAllTeamsQueryHandler to improve error handling in the GetTeam use case.
GetTeamQuery
GetAllTeamsQueryHandler
GetTeam
Error handling improvements:
src/Application/UseCases/Teams/Queries/GetTeam/GetTeamQuery.cs
ErrorOr<TeamDto>
TeamDto?
NotFound
Did you do pair or mob programming?
✏️ No
> 1. What triggered this change? (PBI link, Email Subject, conversation + reason, etc)
✏️ https://github.com/SSWConsulting/SSW.CleanArchitecture/issues/425
✏️ This pull request includes changes to the
GetTeamQuery
andGetAllTeamsQueryHandler
to improve error handling in theGetTeam
use case.Error handling improvements:
src/Application/UseCases/Teams/Queries/GetTeam/GetTeamQuery.cs
: Updated theGetTeamQuery
to returnErrorOr<TeamDto>
instead ofTeamDto?
to better handle errors.src/Application/UseCases/Teams/Queries/GetTeam/GetTeamQuery.cs
: Modified theGetAllTeamsQueryHandler
to returnErrorOr<TeamDto>
and added a check to return aNotFound
error if the team is not found.✏️ No