ViewModel as return value of domain service

2014-09-23 Thread Vladimir Nišević
Hi everybody, here my second question today. I need to provide a domain service which handles multiple elasticsearch and database queries and builds a non persistent domain object and gives that as a response to the 3rd party client thru REST API. So my idea is to define a ViewModel classes

Re: ViewModel as return value of domain service

2014-09-23 Thread Dan Haywood
Um, it certainly is the intention that view models can be returned from the REST API, but was just double checking this before answering, and it seems that there is a bug in 1.6.0. Apologies for that. Looks like the fix is easy enough, and I need to put out a 1.6.1 release anyway to address some