Home Ask Login Register

Developers Planet

Your answer is one click away!

David Anthony February 2016

Serenity MVC Framework use Web Service

I love the Serenity MVC framework and would like to use it as much as possible. I am returning data from a web service and would like to implement the framework using the return List<>. I know it is built on the Entity Frame work, but is it possible to have an override where we can get the data from a web service rather than a database?


Volkan Ceylan March 2016

You should derive your request and response classes from ServiceRequest and ServiceResponse then you can accept any parameter type inside it, e.g:

MyResponse : ServiceResponse { Result: List< Something > }

Post Status

Asked in February 2016
Viewed 2,380 times
Voted 13
Answered 1 times


Leave an answer

Quote of the day: live life