using Emergence.models; using Emergence.services.Interface; namespace Emergence.services.Services; public class UserService : IUserService { private List testList = [ new UserModel {Id = 1, Username = "chris", Email ="chris@fjp.com.au" }, new UserModel {Id = 2, Username = "kim", Email ="kim@fjp.com.au" }, new UserModel {Id = 3, Username = "amanda", Email ="amanda@fjp.com.au" }, new UserModel {Id = 4, Username = "reception", Email ="reception@fjp.com.au" }, ]; public async Task> GetAllAsync() { return testList; } public async Task GetByIdAsync(int id) { #pragma warning disable CS8603 // Possible null reference return. return testList.FirstOrDefault(f => f.Id == id); #pragma warning restore CS8603 // Possible null reference return. } }