Esempio n. 1
0
 public async Task <SlideViewModel> GetById(int id)
 {
     return(new SlideViewModel().Map(await _slideRepository.FindById(id)));
 }
Esempio n. 2
0
        public SlideViewModel GetById(int id)
        {
            var slide = _slideRepository.FindById(id);

            return(Mapper.Map <Slide, SlideViewModel>(slide));
        }