Created
July 9, 2022 14:22
-
-
Save dsibinski/bf658760106de7269ebf3d0f351c0411 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public record UserViewModel(Guid Id, string Name, string LastName, string Login, | |
bool IsActive, int LoyaltyPoints, AddressViewModel? Address = null); | |
// ... | |
public List<UserViewModel> AllUsers() | |
{ | |
var usersViewModels = TestDataGenerator.GetTestUsers(); | |
return usersViewModels.OrderBy(uvm => uvm.Name).ToList(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment