Example #1
0
        public HttpResponseMessage GetIncomeAccountsListing(HttpRequestMessage request)
        {
            return(GetHttpResponse(request, () =>
            {
                //IncomeAccountsListing[] ial = _MPRBSService.GetAllIncomeAccountsListing();
                //return request.CreateResponse<IncomeAccountsListing[]>(HttpStatusCode.OK, ial);

                IncomeAccountsListingMtd obj = new IncomeAccountsListingMtd();
                List <IncomeAccountsListingModel> dm = obj.GetIncomeAccountsListing().ToList();

                return request.CreateResponse(HttpStatusCode.OK, dm);
            }));
        }
Example #2
0
        public HttpResponseMessage GetIncomeAccountsListingUsingParam(HttpRequestMessage request, string search)
        {
            return(GetHttpResponse(request, () =>
            {
                //accountno = accountno.Replace("FORWARDSLASHXTER", "/");
                //accountno = accountno.Replace("DOTXTER", ".");

                //IncomeAccountsListing[] ial = _MPRBSService.FilterByAccountNumber(accountno);


                //return request.CreateResponse<IncomeAccountsListing[]>(HttpStatusCode.OK, ial);

                IncomeAccountsListingMtd obj = new IncomeAccountsListingMtd();
                List <IncomeAccountsListingModel> dm = obj.GetIncomeAccountsListingUsingParams(search).ToList();

                return request.CreateResponse(HttpStatusCode.OK, dm);
            }));
        }