Пример #1
0
        public bool DeleteTrue(IList <int> idList, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (idList != null && idList.Count > 0)
            {
                var delete = tourClassRepository.GetList(e => idList.Contains(e.ClassID)).ToList();
                if (delete != null && delete.Count > 0)
                {
                    res = DeleteTrue(delete, operUser);
                }
            }
            return(res);
        }
Пример #2
0
        /// <summary>
        /// Gets the tour class.
        /// 得到路线的分类哈
        /// </summary>
        /// <returns></returns>
        public IQueryable <iPow.Domain.Dto.Sys_TourClassDto> GetTourClass()
        {
            IQueryable <iPow.Infrastructure.Data.DataSys.Sys_TourClass> temp = null;

            temp = tourClassRepository.GetList(d => d.IsDelete == 0).Where(d => d.ParentID == 0).AsQueryable();
            return(temp.ToDto().AsQueryable());
        }