public void DeleteClient(int id) { Users.Remove(Users.Single(u => u.ID == id)); SaveUsers(); }
public void UpdateUser(User user) { Users[Users.IndexOf(Users.Single(u => u.ID == user.ID))] = user; SaveUsers(); }
public User GetUser(int id) { return(Users.Single(u => u.ID == id)); }