/// <summary> /// 列表页 /// </summary> /// <returns></returns> public BookTypeUI Query() { List <BookTypeName> list = bookTypeRepository.GetList(); BookTypeUI ui = new BookTypeUI() { BookList = list }; if (null != list && list.Count > 0) { ui.ParentBooks = list.Where(t => t.ParentId == 0).ToList(); } return(ui); }