public async Task <IActionResult> ExecuteAsync(CancellationToken cancellationToken) { var listSlide = await _slideRepository.GetAll(cancellationToken); var slideViewModels = _slideMapper.MapList(listSlide); return(new OkObjectResult(slideViewModels)); }
public IEnumerable <Slide> GetAll(string keyword) { if (!String.IsNullOrEmpty(keyword)) { return(_slideRepository.GetMulti(x => x.Name.Contains(keyword))); } else { return(_slideRepository.GetAll()); } }
public IEnumerable <Slide> GetAll() { return(_slideRepository.GetAll()); }
public List <SlideInfo> GetSlides() { return(_slideRepository.GetAll()); }
public List <SlideViewModel> GetAll() { return(_slideRepository.GetAll()); }
public IEnumerable <Slide> GetSlides() { var slides = slideRepository.GetAll(); return(slides); }
public IEnumerable <Slide> GetAll() { return(SlideRepository.GetAll(new string[] { })); }