Ejemplo n.º 1
0
        public static IPagingParameters FillPagingParameters(this IPagingParameters destination, IPagingResults parameters)
        {
            if (destination == null)
            {
                destination = new PagingParameters();
            }
            
            destination.PageNumber = parameters.PageNumber;
            destination.PageSize = parameters.PageSize;
            destination.TotalItems = parameters.TotalItems;
            destination.TotalPages = parameters.TotalPages;

            return destination;
        }
Ejemplo n.º 2
0
        public static IPagingParameters FillPagingParameters(this IPagingParameters destination,
                                                             IPagingResults parameters)
        {
            if (destination == null)
            {
                destination = new PagingParameters();
            }

            destination.PageNumber = parameters.PageNumber;
            destination.PageSize   = parameters.PageSize;
            destination.TotalItems = parameters.TotalItems;
            destination.TotalPages = parameters.TotalPages;

            return(destination);
        }