MVVM implementation of CustomQuery