Untitled

mail@pastecode.io avatar
unknown
csharp
2 years ago
188 B
1
Indexable
Never
public List<Address> userAdresses(int userId) {
    var user = userRepository.getById(userId);
    if (user == null)
        return new List<>();
        
    return user.getAddresses();
}