Updated GetAllItems to use generic type