public questStatus List(QueryOptions queryOptions, out BulkUpdatesListViewModel bulkUpdatesListViewModel)
        {
            // Initialize
            questStatus status = null;

            bulkUpdatesListViewModel = null;


            // List
            QueryResponse queryResponse = null;
            List <Quest.Functional.Logging.BulkUpdateLog> bulkUpdateLogList = null;
            BulkUpdateLogsMgr bulkUpdateLogsMgr = new BulkUpdateLogsMgr(this.UserSession);

            status = bulkUpdateLogsMgr.List(queryOptions, out bulkUpdateLogList, out queryResponse);
            if (!questStatusDef.IsSuccess(status))
            {
                return(status);
            }

            // Sort
            bulkUpdateLogList.Sort(delegate(Quest.Functional.Logging.BulkUpdateLog i1, Quest.Functional.Logging.BulkUpdateLog i2) { return(i2.Created.CompareTo(i1.Created)); });


            // Transfer model.
            // TODO: USE BaseListModeler to xfer queryOptions to QueryOptionsViewModel.
            bulkUpdatesListViewModel = new BulkUpdatesListViewModel(this.UserSession);
            QueryResponseViewModel queryResponseViewModel = null;

            status = TransferQueryResponse(queryResponse, out queryResponseViewModel);
            if (!questStatusDef.IsSuccess(status))
            {
                return(status);
            }
            bulkUpdatesListViewModel.QueryResponse = queryResponseViewModel;
            foreach (Quest.Functional.Logging.BulkUpdateLog bulkUpdateLog in bulkUpdateLogList)
            {
                BulkUpdateLineItemViewModel bulkUpdateLineItemViewModel = new BulkUpdateLineItemViewModel();
                BufferMgr.TransferBuffer(bulkUpdateLog, bulkUpdateLineItemViewModel);
                bulkUpdatesListViewModel.Items.Add(bulkUpdateLineItemViewModel);
            }
            return(new questStatus(Severity.Success));
        }
        public questStatus Page(out BulkUpdatesListViewModel bulkUpdatesListViewModel)
        {
            // Initialize
            questStatus status = null;

            bulkUpdatesListViewModel = null;


            // Set up query options.
            // TEMPORARY: OPTIMIZE THIS
            List <SearchField> searchFieldList = new List <SearchField>();

            SearchOptions searchOptions = new SearchOptions();

            searchOptions.SearchFieldList = searchFieldList;

            QueryOptions queryOptions = new QueryOptions(100, 1);

            queryOptions.SearchOptions = searchOptions;
            QueryResponse queryResponse = null;


            // List
            List <Quest.Functional.Logging.BulkUpdateLog> bulkUpdateLogList = null;
            BulkUpdateLogsMgr bulkUpdateLogsMgr = new BulkUpdateLogsMgr(this.UserSession);

            status = bulkUpdateLogsMgr.List(queryOptions, out bulkUpdateLogList, out queryResponse);
            if (!questStatusDef.IsSuccess(status))
            {
                return(status);
            }

            // Transfer model.
            bulkUpdatesListViewModel = new BulkUpdatesListViewModel(this.UserSession);
            foreach (Quest.Functional.Logging.BulkUpdateLog bulkUpdateLog in bulkUpdateLogList)
            {
                BulkUpdateLineItemViewModel bulkUpdateLineItemViewModel = new BulkUpdateLineItemViewModel();
                BufferMgr.TransferBuffer(bulkUpdateLog, bulkUpdateLineItemViewModel);
                bulkUpdatesListViewModel.Items.Add(bulkUpdateLineItemViewModel);
            }
            return(new questStatus(Severity.Success));
        }