示例#1
0
        public List <AuthorBindingModel> 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
    protected void Page_Load(object sender, EventArgs e)
    {
        AuthorManager am = new AuthorManager();

        listAuthor = am.GetList();
        CategoryManager cm = new CategoryManager();

        listCategory = cm.GetList();
    }
示例#3
0
        public List <AuthorBindingModel> LoadAuthor()
        {
            var listRs = authorManager.GetList();

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