SSW.Rewards.Mobile
SSW.Rewards.Mobile copied to clipboard
♻️ API | Implement guard clauses
SSW Rewards was built from the Clean Architecture template. It originally used an older template, and in newer versions, Guard Clauses has been introduced.
We can implement Guard Clauses in this solution, which will help clean up the code.
Consider rebuilding the API from https://github.com/SSWConsulting/SSW.CleanArchitecture instead
cc: @danielmackay @william-liebenberg @wicksipedia
@matt-goldman - although in the CA template we rolled our own guard clauses, I would also consider using the package from Ardialis: https://github.com/ardalis/GuardClauses
The package can be a good starting point and extended with extra guards if needed.