1

Closed

Add CreateResponse overload that only takes T for body

description

Currently there is an overload that takes HttpStatusCode and T but in many cases HttpStatusCode.OK is the code and in those cases it would be easier just to be able to pass in T.

It would also be useful to have additional CreateErrorResponse for server error, client error, etc.
Closed Jun 4, 2013 at 6:46 PM by kichalla
Verified.

comments

HongmeiG wrote Apr 6, 2013 at 6:03 PM

I think we might want to make the intent a bit cleaner by calling them out in the name of the extension methods.

Request.CreateOKResponse(new Customer());

Or

Request.CreateBadRequestResponse();

vijay_rk wrote Apr 11, 2013 at 7:18 PM