Example #1
0
        public HttpResponseMessage GetIncomeProductsTableALTUsingSearch(HttpRequestMessage request, string searchvalue)
        {
            return(GetHttpResponse(request, () =>
            {
                HttpResponseMessage response = null;
                IncomeProductsTableALT[] ipt = _MPRIncomeService.GetincomeproducttablealtUsingSearchValue(searchvalue);

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

                return response;
            }));
        }