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); }
/// <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()); }