public HttpResponseMessage GetAvailablerawloandetails(HttpRequestMessage request) { return(GetHttpResponse(request, () => { RawLoanDetails[] rawloandetail = _IFRSDataService.GetAllRawLoanDetails().ToArray(); return request.CreateResponse <RawLoanDetails[]>(HttpStatusCode.OK, rawloandetail.ToArray()); })); }