Beispiel #1
0
        public HttpResponseMessage GetIndividualImpairments(HttpRequestMessage request, string refno)
        {
            return(GetHttpResponse(request, () =>
            {
                HttpResponseMessage response = null;

                //IndividualScheduleData[] individualschedule = _LoanService.GetIndividualImpairments(refno);

                IndividualImpairmentData[] individualImpairment = _LoanService.GetIndividualImpairments(refno);

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

                return response;
            }));
        }