public async Task <SlideViewModel> GetById(int id) { return(new SlideViewModel().Map(await _slideRepository.FindById(id))); }
public SlideViewModel GetById(int id) { var slide = _slideRepository.FindById(id); return(Mapper.Map <Slide, SlideViewModel>(slide)); }