Beispiel #1
0
        public HttpResponseMessage GetReferenceNos(HttpRequestMessage request)
        {
            return(GetHttpResponse(request, () =>
            {
                //BondComputation[] bondcomputations = _IFRSDataService.GetRefNoBondComputation();

                //return request.CreateResponse<BondComputation[]>(HttpStatusCode.OK, bondcomputations);
                string[] refNo = _IFRSDataService.GetDistinctRefNo();
                List <ReferenceNoModel> refNos = new List <ReferenceNoModel>();
                foreach (var c in refNo)
                {
                    refNos.Add(new ReferenceNoModel()
                    {
                        RefNo = c
                    });
                }

                return request.CreateResponse <ReferenceNoModel[]>(HttpStatusCode.OK, refNos.ToArray());
            }));
        }