/// <summary> /// Gets the text link list. /// </summary> /// <returns></returns> public List <iPow.Domain.Dto.Sys_LinksInfoDto> GetTextLinkList() { var temp = (from e in linkInfoRepository.GetList() where e.IsDelete == 0 && (e.LinksPath == "" || e.LinksPath == null || e.LinksName == null || e.LinksName == "") && e.ClassID == 3 && e.IsTop == 1 orderby e.AddTime descending select e ).ToList(); return(temp.ToDto().ToList()); }
/// <summary> /// Gets the hotel links. /// 得到酒店页面上的友情链接 /// </summary> /// <returns></returns> public IQueryable <iPow.Application.Union.Dto.HotelBottomLinkDto> GetHotelBottomLinks() { IQueryable <iPow.Application.Union.Dto.HotelBottomLinkDto> hl = null; hl = linkInfoRepository.GetList(e => e.ClassID == 4).Select( e => new iPow.Application.Union.Dto.HotelBottomLinkDto { Title = e.Title, Url = e.WebUrl }).AsQueryable(); return(hl); }