Skip to content

Instantly share code, notes, and snippets.

@nishanc
Created April 16, 2022 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nishanc/0ff001c3eb31d3fbbdaddd88ab4c50cc to your computer and use it in GitHub Desktop.
Save nishanc/0ff001c3eb31d3fbbdaddd88ab4c50cc to your computer and use it in GitHub Desktop.
public async Task<List<User>> GetUsersAsync()
{
List<User> output = new()
{
new() { FirstName = "William", LastName = "Jackson" },
new() { FirstName = "Maria", LastName = "Moody" },
new() { FirstName = "Sarah", LastName = "King" },
new() { FirstName = "Gregory", LastName = "Estrada" },
new() { FirstName = "Juan", LastName = "Russell" },
new() { FirstName = "James", LastName = "Bryant" },
new() { FirstName = "Patrick", LastName = "Mullins" },
new() { FirstName = "Sandra", LastName = "Fleming" },
new() { FirstName = "Miguel", LastName = "Ramsey" },
new() { FirstName = "Monica", LastName = "Howell" }
};
await Task.Delay(3000); // simulating data access time
return output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment