✅ Best Practice on Return Types for Services in WebAPI
Looking for a more of an insight into the better practice of return types with nullability. Lets say I have the following code
Should this be Task<User?> GetById or Task<User> for best practice and why?
2 Replies