Пример #1
0
        private DataGridViewModel <Dictionary <string, object> > GetDataList(SupplierQuery query)
        {
            DataGridViewModel <Dictionary <string, object> > dataGridViewModel = new DataGridViewModel <Dictionary <string, object> >();

            if (query != null)
            {
                DbQueryResult supplierManagers = SupplierHelper.GetSupplierManagers(query);
                dataGridViewModel.rows  = DataHelper.DataTableToDictionary(supplierManagers.Data);
                dataGridViewModel.total = supplierManagers.TotalRecords;
            }
            return(dataGridViewModel);
        }