예제 #1
0
        public HttpResponseMessage GetAsync(HttpRequestMessage request, int page, int itemsCount)
        {
            if (page <= 0)
            {
                return(request.CreateResponse(HttpStatusCode.OK, _appsService.GetAllAsync(page, 0)));
            }

            return(request.CreateResponse(HttpStatusCode.OK, _appsService.GetAllAsync(page, itemsCount)));
        }