public bool DeleteTrue(IList <int> idList, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser) { var res = false; if (idList != null && idList.Count > 0) { var delete = hotelPropertyInfo2Repository.GetList(e => idList.Contains(e.ID)).ToList(); if (delete != null && delete.Count > 0) { res = DeleteTrue(delete, operUser); } } return(res); }
/// <summary> /// Gets the hot hotel. /// 得到热门的酒店信息 /// </summary> /// <param name="take">The take.</param> /// <returns></returns> public IQueryable<Dto.HotelInfoDto> GetHotHotel(int take) { IQueryable<Dto.HotelInfoDto> temp = null; temp = (from e in hotelPropertyInfoRepository.GetList() orderby e.VisitCount descending select new Dto.HotelInfoDto { Id = e.ID, HotelId = e.HotelID, Address = e.Address, MinPrice = e.MinPrice, Name = e.HotelName }).Take(take).AsQueryable(); return temp; }