Esempio n. 1
0
        public async Task <IActionResult> GetPhoto(int id)
        {
            var photoFromRepo = await _bikeRepo.GetPhoto(id);

            var photo = _mapper.Map <PhotoForReturnDto>(photoFromRepo);

            return(Ok(photo));
        }