Exemplo n.º 1
0
        public IList <EntryDataModel <Commodity> > GetEntryDataModelList()
        {
            IList <EntryDataModel <Commodity> > entryDataModelList = new List <EntryDataModel <Commodity> >();

            int pageSize = 50000;

            for (int i = 1; i < 3; i++)
            {
                int index = i;
                KeyValuePair <int, int>  keyValue     = new KeyValuePair <int, int>(index, pageSize);
                Func <List <Commodity> > dataListFunc = () =>
                {
                    return(QueryList(index, pageSize));
                };
                EntryDataModel <Commodity> entryModel = new EntryDataModel <Commodity>(dataListFunc, GetFieldModelList());
                entryDataModelList.Add(entryModel);
            }

            return(entryDataModelList);
        }
Exemplo n.º 2
0
 public ActionResult Detail(EntryDataModel entry)
 {
     return(View(entry));
 }