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); }
protected void Page_Load(object sender, EventArgs e) { AuthorManager am = new AuthorManager(); listAuthor = am.GetList(); CategoryManager cm = new CategoryManager(); listCategory = cm.GetList(); }
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); }