예제 #1
0
        public async Task <IActionResult> GetPhoto(int photoId)
        {
            var photo = await petsRepository.GetPhoto(photoId);

            var photoDTO = mapper.Map <PhotoDTO>(photo);

            return(Ok(photoDTO));
        }