Exemplo n.º 1
0
        /// <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);
        }