예제 #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
 public IEnumerable <Slide> GetAll(string keyword)
 {
     if (!String.IsNullOrEmpty(keyword))
     {
         return(_slideRepository.GetMulti(x => x.Name.Contains(keyword)));
     }
     else
     {
         return(_slideRepository.GetAll());
     }
 }
예제 #3
0
 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
 public IEnumerable <Slide> GetAll()
 {
     return(SlideRepository.GetAll(new string[] { }));
 }