Transforming data with view models