public HttpResponseMessage GetBorrowingSchedule(HttpRequestMessage request, string refno)
        {
            return(GetHttpResponse(request, () =>
            {
                HttpResponseMessage response = null;

                BorrowingSchedule[] borrowingschedule = _IFRSDataService.GetBorrowingSchedulebyRefNo(refno);

                // notice no need to create a seperate model object since BorrowingSchedule entity will do just fine
                response = request.CreateResponse <BorrowingSchedule[]>(HttpStatusCode.OK, borrowingschedule);

                return response;
            }));
        }