Пример #1
0
        public HttpResponseMessage BrowseAds(HttpRequestMessage request, [FromUri] int page)
        {
            return(GetHttpResponse(request, () =>
            {
                HttpResponseMessage response = null;

                Ad[] ads = searchManager.GetAllAdsPaged(page);

                response = request.CreateResponse(HttpStatusCode.OK, ads);

                return response;
            }));
        }