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); })); }
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); })); }