-
Notifications
You must be signed in to change notification settings - Fork 1
Feat/get categories #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| _tickApiDbContext = tickApiDbContext; | ||
| } | ||
|
|
||
| public async Task<Result<ICollection<Category>>> GetCategoriesAsync() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is no possibility of an error we don't need to use Result<...>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it better to stick to the convention?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, the point of this class is to help us handle errors (we use it instead of exceptions). If we have no errors in the function using Result just makes things less readable imo.
113350c to
afc34c7
Compare
kTrzcinskii
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
No description provided.