コード例 #1
0
        public async Task <IActionResult> ExecuteAsync(CancellationToken cancellationToken)
        {
            var listSlide = await _slideRepository.GetAll(cancellationToken);

            var slideViewModels = _slideMapper.MapList(listSlide);

            return(new OkObjectResult(slideViewModels));
        }
コード例 #2
0
ファイル: CommonService.cs プロジェクト: hodachuy/ShopProject
 public IEnumerable <Slide> GetAll(string keyword)
 {
     if (!String.IsNullOrEmpty(keyword))
     {
         return(_slideRepository.GetMulti(x => x.Name.Contains(keyword)));
     }
     else
     {
         return(_slideRepository.GetAll());
     }
 }
コード例 #3
0
ファイル: SlideService.cs プロジェクト: tuanvinhtl/MyShop
 public IEnumerable <Slide> GetAll()
 {
     return(_slideRepository.GetAll());
 }
コード例 #4
0
 public List <SlideInfo> GetSlides()
 {
     return(_slideRepository.GetAll());
 }
コード例 #5
0
 public List <SlideViewModel> GetAll()
 {
     return(_slideRepository.GetAll());
 }
コード例 #6
0
        public IEnumerable <Slide> GetSlides()
        {
            var slides = slideRepository.GetAll();

            return(slides);
        }
コード例 #7
0
ファイル: SlideService.cs プロジェクト: mhthang/justbasic
 public IEnumerable <Slide> GetAll()
 {
     return(SlideRepository.GetAll(new string[] { }));
 }