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