public HttpResponseMessage GetifrsdBond(HttpRequestMessage request, string classification) { return(GetHttpResponse(request, () => { HttpResponseMessage response = null; IFRSTbills[] ifrstbill = _IFRSDataService.GetTbillsByClassification(classification); // notice no need to create a seperate model object since TBillsComputationResult entity will do just fine response = request.CreateResponse <IFRSTbills[]>(HttpStatusCode.OK, ifrstbill.ToArray()); return response; })); }