public void addUser(int id, string name, string email, string password) { User newUser = new User(); newUser.ID = id; newUser.Name = Name; newUser.Email = email; newUser.Password = password; }
public User getUser(int id) { User userReturn = new User(); foreach (User u in userList) { System.Console.Write(u.Name); if (id == u.ID) { return u; } } return null; }