Ejemplo n.º 1
0
        public HttpResponseMessage RequesForServices(int pageIndex, int pageSize, RequestView data)
        {
            int _rowcount = 0;

            return(Request.CreateResponse(HttpStatusCode.OK, new
            {
                data = new PagerRecord <dynamic>(list: _process.RequesForServices(pageIndex, pageSize, UpdatedId, UpdatedId, out _rowcount, data.ProductId, data.StowageFactorId, data.QuantityId, data.LoadingConditionId, data.UnLoadingConditionId, data.LoadPortId, data.LoadTerminalId,
                                                                                  data.DischargePortId, data.DischargeTerminalId, data.StartLaycan, data.EndLaycan),
                                                 page: pageIndex,
                                                 pageSize: pageSize,
                                                 allItemsCount: _rowcount)
            }));
        }