Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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