示例#1
0
        public List <PublisherBindingModel> GetList(string name, int?pageIndex, int?pageSize)
        {
            var listRs = manager.GetList(name, pageIndex, pageSize);

            TotalPage = (listRs.TotalRecord / pageSize) + (listRs.TotalRecord % pageSize == 0 ? 0 : 1);
            //totalPage = listRs.TotalRecord;
            return(listRs.ListOfObjects);
        }
示例#2
0
        public List <PublisherBindingModel> LoadPublisher()
        {
            var listRs = publisherManager.GetList();

            listRs.ListOfObjects.Insert(0, new PublisherBindingModel()
            {
                Id   = -1,
                Name = "Chọn tất cả"
            });
            return(listRs.ListOfObjects);
        }