Esempio n. 1
0
        /// <summary>
        /// 获得前3个轮播图
        /// </summary>
        /// <returns></returns>
        public async Task <List <SlideDto> > FindListAsync()
        {
            var slideList = await _slideRepository.FindList(p => p.Sign == 1 && p.Status == 1).OrderBy(p => p.Weight).ThenByDescending(p => p.AddTime).Take(3).ToListAsync();

            return(slideList.ToList <SlideDto>());
        }