User264732274 posted
HttpResponseMessage r = new HttpResponseMessage();
r.StatusCode = HttpStatusCode.OK;
r.ReasonPhrase = "SUCCESS";
now how could i pass my customer object by HttpResponseMessage class to client side ?
one way is return Request.CreateResponse(HttpStatusCode.OK, customers);
suppose if i do not want to return response this way Request.CreateResponse(HttpStatusCode.OK, customers); rather i want to create instance of HttpResponseMessage and initialize few property and then return. so tell me ow could i pass my customer object
by HttpResponseMessage class to client side ?
thanks