public HorebUser Insert(string username, string password) { HorebUser user = new HorebUser(username); _userCollection.Add(user); return(user); }
public HorebUserCollection FindByName(string name) { HorebUserCollection collection = new HorebUserCollection(); foreach (HorebUser currentUser in _userCollection) { if (currentUser.Name.Contains(name)) { collection.Add(currentUser); } } return(collection); }
public HorebUserCollection GetAll(int startAt, int range) { HorebUserCollection collection = new HorebUserCollection(); int loopCounter = 0; foreach (HorebUser currentUser in _userCollection) { if (loopCounter >= startAt && loopCounter < startAt + range) { collection.Add(currentUser); } } return(collection); }