public void DeleteUser(string login) { User user = search(login); if (user == null) { return; } else { Users.Remove(user.Id); Amount--; } Changed(); }
public void RemoveUser(UserInfo ui) { Users.Remove(ui); }
public void RemoveUser(User user) { Users.Remove(user); SaveChanges(); log.Info($"Removed user: username={user.Username}"); }