public HttpResponseMessage GetDistinctRefNos(HttpRequestMessage request)
        {
            return(GetHttpResponse(request, () =>
            {
                IEnumerable <string> refNo = _IFRSDataService.GetBorrowingPeriodicRefNo();

                return request.CreateResponse <IEnumerable <string> >(HttpStatusCode.OK, refNo);
            }));
        }
        public HttpResponseMessage GetDistinctRefNos(HttpRequestMessage request)
        {
            return(GetHttpResponse(request, () =>
            {
                string[] refNo = _IFRSDataService.GetBorrowingPeriodicRefNo();
                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());
            }));
        }