Esempio n. 1
0
        public HttpResponseMessage GetIncomeProductsTableUsingSearch(HttpRequestMessage request, string searchvalue)
        {
            return(GetHttpResponse(request, () =>
            {
                HttpResponseMessage response = null;
                IncomeProductsTable[] ipt = _MPRIncomeService.GetincomeproducttableUsingSearchValue(searchvalue);

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

                return response;
            }));
        }